Created
February 18, 2019 05:35
-
-
Save imparvez/4f9075a7f0608b2d91f34f599a71b3b0 to your computer and use it in GitHub Desktop.
Get Colon Time From Date
This file contains hidden or 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 getColonTimeFromDate = date => date.toTimeString().slice(0, 8) | |
getColonTimeFromDate(new Date()); // "11:00:34" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment