DateTime.toISOString

string toISOString() const @safe pure nothrow

Converts this DateTime to a string with the format YYYYMMDDTHHMMSS. If writer is set, the resulting string will be written directly to it.

Parameters

writerA char accepting output range

Returns

A string when not using an output range; void otherwise.
void toISOString(W)(ref W writer) if (isOutputRange!(W, char)) const

ditto