Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
How can I get date from text in format 'MMM D, YYYY'?
For instance:
Apr 1, 2014
Apr 12, 2014
Thanks in advance
try this if ur source format is 'MMM DD, YYYY' .
date(date#(DateField,'MMM DD, YYYY'),'D/M/YYYY') as DateFormatData,
try
date(date#(DateText,'DD/MM/YYYY'),'MMM D, YYYY')
in which date format is your date now
like I have a date in DD/MM/YYYY form then
Try this
Date(DAte#(Datefield,'DD/MM/YYYY'),'MMM DD YYYY') AS Date
try this if ur source format is 'MMM DD, YYYY' .
date(date#(DateField,'MMM DD, YYYY'),'D/M/YYYY') as DateFormatData,
Duplicate of http://community.qlik.com/thread/114594
Please only post one version of your question to ensure that there's no duplication of effort and that a correct answer can be set properly.
it depends on what format your date is currently in.
Let's assume your date input is DD/MM/YYYY
You can then convert this by using
DATE(DATE#(Date,'DD/MM/YYYY'),'MMM D, YYYY') AS Date
Also please see the attached