38
Views
5
Comments
Solved
do we have any time conversation UTC to AEST functions available in outsystems?(it sh

do we have any time conversation UTC to AEST functions available in outsystems?(it should work for daylight saving time also)


Hi, I know outsystems storing date is UTC time zone, and application converting date and timer as per the client time Zone, that's good, actually while downloading the data from SQL sandbox, I want a convert dates into AEST (since by default its not happening)

2024-06-12 08-10-25
Zeeshan Khan
Solution

While downloading the data from SQL in AEST  format you can simply make an Advanced SQL query

'SELECT     

Column1,    

Column2,    

CASE         

WHEN YourUtcDateColumn BETWEEN '2024-10-06T02:00:00Z' AND '2025-04-06T03:00:00Z' THEN DATEADD(HOUR, 11, YourUtcDateColumn)        

ELSE DATEADD(HOUR, 10, YourUtcDateColumn)    

END AS YourDateInAEST 

FROM     

Table '

Hope this will help you 

Thanks...

2021-11-12 04-59-31
Manikandan Sambasivam
Solution

OutSystems does not provide a built-in function to directly convert UTC to AEST with consideration for daylight saving time. However, you can achieve this by using custom logic to handle the conversion. 

2024-05-14 06-49-08
Karnika-EONE
Solution

Hi @Priya Naveen

There is no builtin function to calculate the timezone.

TimeZones Converter - Overview (O11) | OutSystems

I hope this forge component will help you.  or 

You may add custom logic like this

var aestOffsetHours = 10; // Calculate offset in minutes (considering standard time only) var aestOffsetMinutes = aestOffsetHours * 60; // Adjust UTC time based on the offset (add for AEST) var aestDateTime = DateTimeAddMinutes(utcDateTime, aestOffsetMinutes); 


Regards

Karnika.K

2021-11-12 04-59-31
Manikandan Sambasivam
Solution

OutSystems does not provide a built-in function to directly convert UTC to AEST with consideration for daylight saving time. However, you can achieve this by using custom logic to handle the conversion. 

2024-06-12 08-10-25
Zeeshan Khan

Hello @Priya Naveen 

Yes we have a time conversation UTC to AEST functions available in outsystems 

just simply use this sql 

'SELECT     

DATEADD(HOUR, 10, YourUtcDateColumn) AS YourDateInAEST

FROM     

YourTable '


2024-06-03 11-04-24
Priya Naveen

thanks, it will work now,  but when it comes to daylight saving time 10 hours may change, in that scenario

2024-06-12 08-10-25
Zeeshan Khan
Solution

While downloading the data from SQL in AEST  format you can simply make an Advanced SQL query

'SELECT     

Column1,    

Column2,    

CASE         

WHEN YourUtcDateColumn BETWEEN '2024-10-06T02:00:00Z' AND '2025-04-06T03:00:00Z' THEN DATEADD(HOUR, 11, YourUtcDateColumn)        

ELSE DATEADD(HOUR, 10, YourUtcDateColumn)    

END AS YourDateInAEST 

FROM     

Table '

Hope this will help you 

Thanks...

2024-05-14 06-49-08
Karnika-EONE
Solution

Hi @Priya Naveen

There is no builtin function to calculate the timezone.

TimeZones Converter - Overview (O11) | OutSystems

I hope this forge component will help you.  or 

You may add custom logic like this

var aestOffsetHours = 10; // Calculate offset in minutes (considering standard time only) var aestOffsetMinutes = aestOffsetHours * 60; // Adjust UTC time based on the offset (add for AEST) var aestDateTime = DateTimeAddMinutes(utcDateTime, aestOffsetMinutes); 


Regards

Karnika.K

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.