DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Get current date in javascript using moment()
// using moment()
var
now
=
moment
(
)
;
let
today
=
now
.
format
(
'YYYY-MM-DD'
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Get
#current
#date
#javascript
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit