As we’ve harped upon many, many, many, many, many, many times: writing your own date functions is bad. Use the built-ins or a library or anything but your own awful string-mangling date code.

But you can and should wrap the date handling stuff in your own functions as convenient. That’s just good programming.

Krystian S inherited some code, which wraps date handling functions in its own abstractions, with method names like:

convertHHcolonMMtoHHcolonMMcolonSS(value);
convertDDdMMdYYYtoYYYYminusMMminusDD(value);
convertDDdMMdYYYspHHcolonMMtoYYYminusMMminusDDspHHcolonMMcolonSS(value);

That’s a lot of stray date formatting codes mixed with colons. If your colon is getting that jammed up, you might want to talk to a doctor.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!