Salesforce B2C Commerce 23.5 > B2C Commerce API > B2C Commerce Script > dw.util
dw.util
Class DateUtils
Object
dw.util.DateUtils
A class with several utility methods for Date objects.
Deprecated:
See each method for additional information.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
static nowForInstance() : Date
Returns the current time stamp in the time zone of the instance.
static nowForSite() : Date
Returns the current timestamp in the time zone of the current site.
static nowInUTC() : Date
Returns the current time stamp in UTC.
Methods inherited from class Object
Method Detail
nowForInstance
static nowForInstance() : Date
Returns the current time stamp in the time zone of the instance.
Deprecated:
Use System.getCalendar() instead.
Returns:
the current time stamp in the time zone of the instance.

nowForSite
static nowForSite() : Date
Returns the current timestamp in the time zone of the current site.
Deprecated:
Use Site.getCalendar() instead.
Returns:
the current timestamp in the time zone of the current site.

nowInUTC
static nowInUTC() : Date
Returns the current time stamp in UTC.
Deprecated:
Create a new Calendar object and set the time zone "UTC" instead.
Returns:
the current time stamp in UTC.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.