Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

DateTime format

Hi Guys

I have a field that displays the datetime format. I would only like it to display the date. In my load script it is as follows.

     "dDate_on_board"as [Estimate dDate_on_board],

It displays as follows

EDA.PNG

Is there a way i can resolve this with the load script.

Help is much appreciated

1 Solution

Accepted Solutions
Not applicable
Author

Thanks so much. Tried this and it worked

trim(date(date("dDate_arrival",'YYYY/MM/DD hh:mm:ss[.fff] TT'),'YYYY/MM/DD ') )

   AS [Estimate dDate_arrival];

View solution in original post

2 Replies
sunny_talwar

I assume you are doing this in load statement and not SQL Select. If that's true, try this:

Date(Floor("dDate_on_board")) as [Estimate dDate_on_board],


or this if date is read as text string by QV


Date(Floor(Date#(Left("dDate_on_board", 10), 'YYYY-MM-DD'))) as [Estimate dDate_on_board],

Not applicable
Author

Thanks so much. Tried this and it worked

trim(date(date("dDate_arrival",'YYYY/MM/DD hh:mm:ss[.fff] TT'),'YYYY/MM/DD ') )

   AS [Estimate dDate_arrival];