This page (revision-3) was last changed on 02-Aug-2023 08:28 by Dieter Käppel

This page was created on 02-Aug-2023 08:19 by Dieter Käppel

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
3 02-Aug-2023 08:28 671 bytes Dieter Käppel to previous
2 02-Aug-2023 08:20 590 bytes Dieter Käppel to previous | to last
1 02-Aug-2023 08:19 360 bytes Dieter Käppel to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 added 6 lines
Neben [NodeJS] wird [JavaScript] vor allem in Browsern verwendet.
!!!Convert ISO Date
In speziellen Anwendungsfällen für HTML5-Datepicker kann folgender Code zur Umwandlung von Datum zu ISO-Date verwendet werden:
{{{
At line 5 changed one line
return ("00" + parts[2]).slice(-2) +
return ("0000" + parts[2]).slice(-4) +
At line 7 changed one line
"-" + ("0000" + parts[0]).slice(-4);
"-" + ("00" + parts[0]).slice(-2);
At line 11 changed 2 lines
if (iso)
return iso.substring(8, 10) + "." + iso.substring(5, 7) + "." + iso.substring(0, 4);
if (iso) {
const parts = iso.match(/(\d+)/g);
return ("00" + parts[2]).slice(-2) +
"." + ("00" + parts[1]).slice(-2) +
"." + ("0000" + parts[0]).slice(-4);
}
At line 25 added one line
}}}