2 Replies Latest reply: Feb 6, 2014 11:46 AM by Thomas Jensen RSS

    Conversion of datetime to date

      Hi -

       

      What is the generel rule by convert a datetime to a date?

       

      Eg in SQL cast('2014-01-15 03:00:00.00' as date) equals 2014-01-15 and then it spands from 2014-01-15 00:00:00.001 to 2014-01-15 23:59:59.999

       

      But when i do this in Qlikview Date#(Date(CreateDate, 'YYYY-MM-DD') - then i dont get all my data (some of my data from the 15th is pushed back to the 14th.

       

      How can i avoid this?