How to get Date based on Timezone?
Salesforce System.now() gives the time in the gmt format and we want to know what is the exact date based on the locale. For example 10pm GMT time with date 14th July 2025 but in case of India it would have already passed so, the effective time in India would be 3:30 AM 15th July 2025. So the date is changed here. To get this date we can follow the below code snippet. public static DateTimeβ¦











