Skip to content

Instantly share code, notes, and snippets.

View LemmaEOF's full-sized avatar

Lemma Brummel LemmaEOF

View GitHub Profile
/**
* Lemma's Fancy Vanilla.js Date-Time Formatting Script!
* I'm actually pretty proud of this since I'm not a JS programmer lmao
*
* Available under MIT if you want to use this on your site!
*
* How to use:
* 1. Add this script to your HTML as a file marked defer
* 2. Create a <time> element somewhere in your code
* 3. Set the `datetime` property to be the ISO-8601 time code you want to use!