DateTimeFormatter class

Constructors

DateTimeFormatter()

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

Static Methods

convertIntValueToDateTime(String? value) DateTime?
convertStringToDate(String? format, String? date) DateTime?
formatDate(DateTime dateTime, String format) String
Format day display
formatDateTime(int value, String format) String
Format datetime string
generateDateFormat(String? dateFormat, BrnDateTimePickerMode pickerMode) String
Get default value of date format.
generateDateRangePickerFormat(String? dateFormat, BrnDateTimeRangePickerMode pickerMode) String
isDayFormat(String format) bool
Check if the date format is for day(contain y、M、d、E) or not.
isTimeFormat(String format) bool
Check if the date format is for time(contain H、m、s) or not.
splitDateFormat(String? dateFormat, {BrnDateTimePickerMode? mode}) List<String>
Split date format to array.