Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
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 II
Specialist II

@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 II
Specialist II

@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