Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading data

Hello how can i load the date of my field as "year-month"? It's know "day-month-year"

12 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Use this

=Date(DateFieldName,  'YYYY-MMM')

Regards,

Jagan.

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with this if jagan mohan suggestion is not working.

     Date(Date#(DateField,'DD-MMM-YYYY'),'YYYY-MMM')

Not applicable
Author


Does'nt work returns '0'

Not applicable
Author

Returns '-1'

jagan
Partner - Champion III
Partner - Champion III

Hi,

Can you attach some sample dates you used in the application.  When I checked this '05/01/2012'  I got

=Date('5/1/2012',  'YYYY-MMM')

2012-May

Regards,

Jagan.

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Can you post sample date format you have used in these expressions?

Celambarasan

Not applicable
Author

The date which is loaded is know 1-5-2012 and i want 2012-5

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

Date(Date#(DateField,'D-M-YYYY'),'YYYY-M')

Regards,

jagan.

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

Then check with this
Date(Date#(DateField,'D-M-YYYY'),'YYYY-M')

Celambarasan