cancel
Showing results for 
Search instead for 
Did you mean: 

Converting UST date and time to IST date and time

FatemaShakir
New Contributor II

Hey all,

Is there any way to convert a UST date/time to an IST date/time?
Any help will be appreciated.

Thank you.

1 ACCEPTED SOLUTION

marjan_karafilo
Contributor

Hi @FatemaShakir ,

You can try the following expression:

Date.parse(Date.now()).toLocaleDateTimeString({"timeZone":"Asia/Kolkata", "format":"yyyy-MM-dd HH:mm"})

It converts current datetime in IST timezone.

Also, you can take a look at this documentation about Date Functions and Properties in SnapLogic.

These are the Supported Timezones in SnapLogic.

BR,
Marjan

View solution in original post

4 REPLIES 4

marjan_karafilo
Contributor

Hi @FatemaShakir ,

You can try the following expression:

Date.parse(Date.now()).toLocaleDateTimeString({"timeZone":"Asia/Kolkata", "format":"yyyy-MM-dd HH:mm"})

It converts current datetime in IST timezone.

Also, you can take a look at this documentation about Date Functions and Properties in SnapLogic.

These are the Supported Timezones in SnapLogic.

BR,
Marjan

thanks a lot!

Aleksandar_A
Contributor III

Hi @FatemaShakir,

If you want to keep the typeof of the field as Date then you can try using the following expression:
Date.parse(Date.now().toLocaleDateTimeString({"timeZone":"Asia/Kolkata"}) + " Asia/Kolkata")

BR,
Aleksandar.

thank you Aleksandar…