JavaScript
This is version . It is not the current version, and thus it cannot be edited.
Back to current version   Restore this version
const convert = { toISO: (text) => { if (text) { const parts = text.match(/(\d+)/g); return ("00" + parts[2]).slice(-2) + "-" + ("00" + parts[1]).slice(-2) + "-" + ("0000" + parts[0]).slice(-4); } }, fromISO: (iso) => { if (iso) return iso.substring(8, 10) + "." + iso.substring(5, 7) + "." + iso.substring(0, 4); } };