How to convert IST to EST dates
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022
05:52 AM
11-30-2022
05:52 AM
How to convert IST to EST dates
I need help to convert IST dates to EST. I tried using below syntax but i am getting error as incorrect format string. current = aqDateTime.Now(); aqConvert.DateTimeToFormatStr(current, "%m/%d/%Y %I:%M:%S %est")
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022
10:30 AM
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022
08:51 PM
11-30-2022
08:51 PM
its like %z - Timezone abbrevation. I tried EST as time zone name.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022
02:49 AM
12-01-2022
02:49 AM
This is the correct usage
function tes()
{
var current = aqDateTime.Now();
Log.Message(aqConvert.DateTimeToFormatStr(current, "%d %b %Y %I:%M:%S %p %z"));
}
and to perform the "conversion", see https://stackoverflow.com/questions/16805806/conversion-of-time-zone-from-est-to-ist-using-java-scri... and you should be able to perform the same.
