YearMonth.toISOExtString

Formats the year and month as an ISO 8601 extended string in the format YYYY-MM.

struct YearMonth
const scope
void
toISOExtString
(
W
)
(
scope ref W w
)
if (
isOutputRange!(W, char)
)

Examples

auto ym = YearMonth(1999, Month.jan);
assert(ym.toISOExtString == "1999-01");