Forum Discussion

darshthakkar's avatar
darshthakkar
Valued Contributor
4 years ago
Solved

Suffixing date with date format abbreviation (e.g. EST, UTC, IST, etc.)

Continuing the discussion from Date in Salesforce acceptable format: Hi Team, I actually need the following format for date: 2023-02-28T00:00:00.000 EST I’m currently using $Expire_Date.toLoc...
  • Supratim's avatar
    Supratim
    4 years ago

    @darshthakkar Can try this option- .toLocaleDateTimeString({“format”:“YYYY-MM-dd’T’HH:mm:ss z”,“timeZone”:“IST”}) will give you “2022-08-16T12:06:55 IST” format.