dayOfMonthOrdinal method

  1. @useResult
String dayOfMonthOrdinal()

Returns the ordinal representation of the day of the month.

For example, for the 1st day of the month, it returns "1st". For the 2nd day, it returns "2nd", and so on.

Implementation

@useResult
String dayOfMonthOrdinal() => day.ordinal();