Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
in qlik sense
I have a timestamp in a string format and I need to convert it into a date and time with e specific format.
the idea is to be able to create a calendar or extracts month.week...etc from that field, which is not possible when it's a string
Use the date#() function.
when I use date#(fieldname) it generated another column which is actually the same
if I try to do Month(date#(filename)) it doesn't extract the month which means it doesn't understand it as a date
Date(Floor(Date#(Field,'YYYY-MM-DD hh:mm:ss.fffffff +ff:ff')),'DateFormat')
I found an easier solution. I used left(fieldname, 19) to extract the first 19 characters which includes the seconds and qlik recognised automatically the date and time