Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/Type/Dateish.rakudoc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ say Date.today.yyyy-mm-dd("/"); # OUTPUT: «2020/03/14␤»
=for code :ok-test<dd>
method mm-dd-yyyy(str $sep = "-" --> Str:D)

Returns the date in C<MM-DD-YYYY> format (L<ISO 8601|https://en.wikipedia.org/wiki/ISO_8601>).
Returns the date in C<MM-DD-YYYY> format (L<Gregorian, month-day-year (MDY)|https://en.wikipedia.org/wiki/Calendar_date>).
The optional positional argument C<$sep>, which defaults to C«-», is a one-character
separator placed between the different parts of the date.

Expand All @@ -198,7 +198,7 @@ say Date.today.mm-dd-yyyy("/"); # OUTPUT: «03/14/2020␤»
=for code :ok-test<dd>
method dd-mm-yyyy(str $sep = "-" --> Str:D)

Returns the date in C<DD-MM-YYYY> format (L<ISO 8601|https://en.wikipedia.org/wiki/ISO_8601>).
Returns the date in C<DD-MM-YYYY> format (L<Gregorian, day-month-year (DMY)|https://en.wikipedia.org/wiki/Calendar_date>).
The optional positional argument C<$sep>, which defaults to C«-», is a one-character
separator placed between the different parts of the date.

Expand Down