DateTimeFormatExtension extension
- on
Methods
-
dayOfYear(
) → int -
Available on DateTime, provided by the DateTimeFormatExtension extension
Calculates the day of the year for the currentDateTime
object. -
format(
{String pattern = 'dd-MM-yyyy'}) → String -
Available on DateTime, provided by the DateTimeFormatExtension extension
Formats the current date-time object into a custom string pattern. -
formatTime(
{String pattern = 'HH:mm:ss'}) → String -
Available on DateTime, provided by the DateTimeFormatExtension extension
Formats the current date-time object into a time string based on a given pattern. -
isoWeekOfYear(
) → int -
Available on DateTime, provided by the DateTimeFormatExtension extension
Calculates the ISO 8601 week number of the year for the currentDateTime
instance. -
timeZoneOffSet(
) → String -
Available on DateTime, provided by the DateTimeFormatExtension extension
Returns the formatted timezone offset as a string in±HH:mm
format. -
weekOfYear(
) → int -
Available on DateTime, provided by the DateTimeFormatExtension extension
Calculates the week number of the year for the currentDateTime
instance.