Skip to content

Instantly share code, notes, and snippets.

@cristinafsanz
Created July 29, 2022 09:20
Show Gist options
  • Save cristinafsanz/a19aa99a296b5e6dd286041793015508 to your computer and use it in GitHub Desktop.
Save cristinafsanz/a19aa99a296b5e6dd286041793015508 to your computer and use it in GitHub Desktop.

Revisions

  1. cristinafsanz revised this gist Jul 29, 2022. No changes.
  2. cristinafsanz created this gist Jul 29, 2022.
    7 changes: 7 additions & 0 deletions format-date-plain-js.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    ```
    new Date().toLocaleDateString("de-DE", {
    year: "numeric",
    month: "2-digit",
    day: "2-digit",
    })
    ```