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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

pulling a date field from a spreadsheet

My transdate field looks like this...01/30/2011.

How do I convert this so I can use it as a date range (i.e. if transdate >= 1/30/11 and transdate <= 2/26/11, feb-01, etc...etc

thank you

New to the Q

Labels (1)
4 Replies
Miguel_Angel_Baeyens
Support
Support

Hello,

If that is the correct date format, go to the script editor and try

Date(transdate, 'MMM-YY') AS DateRange


Hope that helps

tresB
Champion III
Champion III

if you don't need to deal with your own range, you can use function - MONTHNAME. have a look at it. if this does not solve your problem, let us know.

Regards, tresesco

Not applicable
Author

Date' is not a recognized built-in function name.

I placed it in the sql statement

Miguel_Angel_Baeyens
Support
Support

Yep, the right place to set it is the LOAD part (that I use all the time, and I strongly recommend you to do as well):

LOAD Date(transdate, 'MMM-YY') AS transdate;SQL SELECT transdateFROM Database.table


Hope that helps.