MoyeDateTimeExtension extension
- on
Properties
- daysInMonth → int
-
returns the number of days in the month of this DateTime
no setter
- onlyYearMonthDay → DateTime
-
returns this DateTime without the time information
no setter
Methods
-
getDayMonthYear(
{String splitter = ','}) → String - 02, 01 , 2022 (dd, mm, yyyy)
-
getMonthDayYear(
{bool shortMonthName = false}) → String - November 3, 2022
-
getTime(
{bool is24Hours = false}) → String -
19:02 or 7:02 pm depending on
is24Hours
-
getWeekDayDate(
{bool shortWeekDay = false, bool includeSuffix = false}) → String - Fri 18th or Friday 18th
-
getYearMonthDay(
{String splitter = ','}) → String - 2022, 02, 01 (YYYY,MM,DD)