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

convert datetimestamp to date for Master Calender

Currently my database is using a datetimestamp instead of a date and i want to convert the date time stamp to a date. datewhen in the code below is a datetimestamp, 2009-10-29 00:00:00.000

vMinDate = Num(Peek('datewhen' 0 'transactions'));


it seems to me when i debug it seems to tells me the value of vMinDate=null

1 Solution

Accepted Solutions
Not applicable
Author

I don't understand the usage of Peek here.

The Date# statement you could use looks like :

LET vDate = Date#('2009-10-29 00:00:00.000','YYYY-MM-DD hh:mm:ss.fff');

This can also be used in a load statement

View solution in original post

2 Replies
Not applicable
Author

I don't understand the usage of Peek here.

The Date# statement you could use looks like :

LET vDate = Date#('2009-10-29 00:00:00.000','YYYY-MM-DD hh:mm:ss.fff');

This can also be used in a load statement

Not applicable
Author

I was trying out with the samples of master calender from the developer training. The peek function was there