DateTimeFormatsVN class abstract

Constants for formatting dates and times in the Vietnamese locale.

These formats are designed to be used with the DateFormat constructor, specifying the locale as "vi_VN".

Example Formats:

  • dateTime: "dd/MM/yyyy HH:mm:ss" (e.g., 01/01/2024 14:30:45)
  • dateTimeWithoutSeconds: "dd/MM/yyyy HH:mm" (e.g., 01/01/2024 14:30)
  • dateOnly: "dd/MM/yyyy" (e.g., 01/01/2024)
  • timeOnly: "HH:mm:ss" (e.g., 14:30:45)
  • timeOnlyWithoutSeconds: "HH:mm" (e.g., 14:30)
  • dateWithDayAndMonthOnly: "dd/MM" (e.g., 01/01)
  • yearOnly: "yyyy" (e.g., 2024)
  • dateWithDayName: "EEEE, dd/MM/yyyy" (e.g., Thứ Hai, 01/01/2024)
  • dateWithMonthName: "dd MMMM yyyy" (e.g., 01 Tháng Một 2024)
  • shortDateWithMonthName: "dd MMM" (e.g., 01 Tháng Một)

Constructors

DateTimeFormatsVN()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

dateOnly → const String
Format for date only.
dateTime → const String
Full date and time format including seconds.
dateTimeWithoutSeconds → const String
Date and time format excluding seconds.
dateWithDayAndMonthOnly → const String
Format for day and month only.
dateWithDayName → const String
Format for full date including the day of the week.
dateWithMonthName → const String
Format for full date including the month name.
shortDateWithMonthName → const String
Short format for date including the month name.
timeOnly → const String
Format for time only including seconds.
timeOnlyWithoutSeconds → const String
Format for time only excluding seconds.
yearOnly → const String
Format for year only.