2

Date.today() returns the datetime for the current users timezone (ref: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_date.htm). How do I make it return a date information in UTC format?

Thanks

2

1 Answer 1

3

You can use

System.debug(Datetime.now().dateGMT());

which would return the Date in the GMT Timezone

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .