Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
sannidhikumar
Creator
Creator

how to get date format

Hi All ,

how to get date format .

and i am using this date(date#([Due Date],'DD-MMM-YYYY'),'MMM-YYYY') AS MonthYear1 not getting correct

output.

to Ex: Jan-2017

thanks ,

45 Replies
kamal_sanguri
Specialist
Specialist

The expression seems ok, please ensure the format of [Due Date] is DD-MMM-YYYY

kamal_sanguri
Specialist
Specialist

=Date(Date#('09-Jun-2017','DD-MMM-YYYY'),'MMM-YYYY') is working fine for me. Please see attached.

sujeetsingh
Master III
Master III

Expression seems okay. just check the data types.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Care to enlighten us on what exactly you mean by "...not getting correct output...". What is it you get right now, and what do you need?

qlikcheepirishe
Creator
Creator

Hiii pradeep,

please find attachment below.

date() gives date for the field & date#() specifies the format which should be set

sannidhikumar
Creator
Creator
Author

hi All ,

thanks for reply i need out put as like this .Capture.JPG

sannidhikumar
Creator
Creator
Author

due date is field name i am using .

kamal_sanguri
Specialist
Specialist

you will get the output you require with the expression I provided earlier -

=Date(Date#('09-Jun-2017','DD-MMM-YYYY'),'MMM-YYYY')


replace the date in expression '09-Jun-2017' with your date field

replace the 'DD-MMM-YYYY' with the current format of your date field .

kamal_sanguri
Specialist
Specialist

what is the format of your due date ?