Created
May 24, 2021 04:23
-
-
Save LuisThiamNye/34104155a7ac0bfae97995d6044351ae to your computer and use it in GitHub Desktop.
Shows the current date. It's that simple.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns com.luisthiamnye.roam-render.simple-current-date-widget) | |
(defn date-widget [_] | |
[:span {:style {:color "#31495E" | |
:font-size "17px"}} | |
"Today: " | |
[:b | |
(let [d (js/Date.)] | |
(str (.toLocaleDateString d "en-GB" | |
#js {:weekday "short" | |
:day "numeric" | |
:month "short" | |
:year "numeric"})))]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment