please help me to get month

i have a datatable and a field date.
i want to get month from that file
such as this picture i had attach
please help me
getmonth3.GIF


ppc0312 (BOB member since 2012-08-13)

Is the field “denngay” date type?


cpmohanraj :australia: (BOB member since 2002-09-23)

field “denngay” type nvarchar(50).


ppc0312 (BOB member since 2012-08-13)

You need to convert that to date using Date function and then continue to use your formula on top the date field


cpmohanraj :australia: (BOB member since 2002-09-23)

i had to try convert to type of date
But the error has occur.
getmonth5.JPG


ppc0312 (BOB member since 2012-08-13)

You should use the “Date” function and pass three parameters YYYY, MM & DD.

It will be something like

Month(Date(YYYY, MM, DD))

You may need to create three different variables for YYYY, MM & DD from the field “denngay”


cpmohanraj :australia: (BOB member since 2002-09-23)

thanks for support. but i think that it begin to make me difficult.
I dont know to declare 3 variables for type of date for it run.
you can for me example.
(my field’s DenNgay is format: dd/mm/yyyy 00:00:00)


ppc0312 (BOB member since 2012-08-13)

Mid(field,4,2)


anil.ganga1 :us: (BOB member since 2007-07-04)