Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
You can also use TimeStamp#() function to help Qlik interpret your date and then do transformations on top of it. Example
Date(Floor(TimeStamp#('02-11-19 04:45:25.089000000 PM', 'DD-MM-YY hh:mm:ss.fff TT')))
In the script
Date(Floor(TimeStamp#(FieldName, 'DD-MM-YY hh:mm:ss.fff TT'))) as Date
Load Date(Date#(Left(CreatedDate,8),'DD-MM-YY')) as Date,
Year(Date(Date#(Left(CreatedDate,8),'DD-MM-YY'))) as Year,
Month(Date(Date#(Left(CreatedDate,8),'DD-MM-YY'))) as Month,
'Q' & Ceil(Num(Month(Date(Date#(Left(CreatedDate,8),'DD-MM-YY'))))/3) as Quarter,
Weekday(Date(Date#(Left(CreatedDate,8),'DD-MM-YY'))) as Weekday
You can also use TimeStamp#() function to help Qlik interpret your date and then do transformations on top of it. Example
Date(Floor(TimeStamp#('02-11-19 04:45:25.089000000 PM', 'DD-MM-YY hh:mm:ss.fff TT')))
In the script
Date(Floor(TimeStamp#(FieldName, 'DD-MM-YY hh:mm:ss.fff TT'))) as Date
Thanks Sunny and Umaresh for your quick response. it is working fine
Sorry to say Amarneh
It is not working
In this way that fields are blanks only it will not generating dates
Hi Amareh Thanks, it is also working fine, any one can use this way also thanks a lot both of you