Created
February 20, 2024 19:16
-
-
Save neodigm/6bcb2ccec715f35e145fdbf1f57a82c7 to your computer and use it in GitHub Desktop.
New Extended Date Pretty - With Time this time
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
const prettyTimeExt = ( sDt ) => { | |
return new Date( sDt ).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric", hour: "2-digit", minute:"2-digit", second:"2-digit" } ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment