public class DTDateTimeUtils
This class provide useful method(s) to manipulate dates and times.
| Modifier and Type | Method and Description |
|---|---|
static BBjString | convert(BBjString fromDateTimeString!, BBjString dateTimePattern!, Object fromTimeZone!, Object toTimeZone!)This method allows to convert a date / type passed as a string to another time zone and / or to another date / time pattern |
static BBjString | convert(BBjString fromDateTimeString!, BBjString fromDateTimePattern!, BBjString toDateTimePattern!, Object fromTimeZone!, Object toTimeZone!)This method allows to convert a date / type passed as a string to another time zone and / or to another date / time pattern |
static BBjInt | mthDayYearToJulian(BBjString mdy$) |
static Boolean | verifyTimeZoneID(BBjString timeZoneID!) |
public static BBjString convert(BBjString fromDateTimeString!, BBjString dateTimePattern!, Object fromTimeZone!, Object toTimeZone!)
This method allows to convert a date / type passed as a string to another time zone and / or to another date / time pattern
BBjString fromDateTimeString! A string representing a date/time that needs to be convertedBBjString dateTimePattern! A date/time pattern describing 'fromDateTimeString!' date / timeObject fromTimeZone! Time zone object. Can be either type of String / BBjString or TimeZone. Describes the time zone of date / time in 'fromDateTimeString!'Object toTimeZone! Time zone object. Can be either type of String / BBjString or TimeZone. Describes the time zone of the converted date / timepublic static BBjString convert(BBjString fromDateTimeString!, BBjString fromDateTimePattern!, BBjString toDateTimePattern!, Object fromTimeZone!, Object toTimeZone!)
This method allows to convert a date / type passed as a string to another time zone and / or to another date / time pattern
BBjString fromDateTimeString! A string representing a date/time that needs to be convertedBBjString fromDateTimePattern! A date/time pattern describing 'fromDateTimeString!' date / timeBBjString toDateTimePattern! A date/time pattern describing a format of the resulting date /time stringObject fromTimeZone! Time zone object. Can be either type of String / BBjString or TimeZone. Describes the time zone of date / time in 'fromDateTimeString!'Object toTimeZone! Time zone object. Can be either type of String / BBjString or TimeZone. Describes the time zone of the converted date / timepublic static BBjInt mthDayYearToJulian(BBjString mdy$)public static Boolean verifyTimeZoneID(BBjString timeZoneID!)