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: 
iahmad9
Partner - Contributor III
Partner - Contributor III

Need Date and time format like'YYYY-MM-DDT00:00:00'

Hi Team,

I am pulling data from REST API. I am planning to use incremental load but my api YTMDATE date coming like blow.

YTMDATE

'2021-01-31T00:00:00'

I am trying to calculate max date but date format getting change.

MAX(Timestamp(YTMDATE,'YYYY-MM-DDThh:mm:ss')) AS MaxYTMDATE

I would like to request you Please help on this.

Irshad Ahmad

Labels (1)
1 Solution

Accepted Solutions
MatheusC
Specialist
Specialist

@iahmad9 

Try this example below:


Replace(timestamp(max(DateTime),'YYYY-MM-DD hh:mm:ssZ'),' ','T') as MaxDateTime 

 
- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

2 Replies
MatheusC
Specialist
Specialist

@iahmad9 

Try this example below:


Replace(timestamp(max(DateTime),'YYYY-MM-DD hh:mm:ssZ'),' ','T') as MaxDateTime 

 
- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
iahmad9
Partner - Contributor III
Partner - Contributor III
Author

Thank you. I am getting the expected output