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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

extracting information from a field

hi,

i have this kind of format in a field

MM DD, YYYY hh:mm

January 29, 2011 12:00

February 29, 2011 12:00

March 29, 2011 12:00

April 29, 2011 12:00

May 29, 2011 12:00

June 29, 2011 12:00

July 29, 2011 12:00

August 29, 2011 12:00

September 29, 2011 12:00

October 29, 2011 12:00

November 29, 2011 12:00

December 29, 2011 12:00

what changes do i have to do in the follow qlikview variables to extract month, year and day independently or how i can extract this information?

TimeFormat

DateFormat

TimestampFormat

MonthNames

thanks,

1 Reply
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

I think you should first convert the string to the timestamp, and then you can extract any other formats from the timestamp:

timestamp#(DateString, 'MMMM DD, YYYY mm:ss') as MyTimestamp

Notice the MMMM - that signifies the full spelling of the month names.