Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get only month and year in js

let dateObj = new Date();

let myDate = (dateObj.getUTCFullYear()) + "/" + (dateObj.getMonth() + 1)+ "/" + (dateObj.getUTCDate());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #month #year #js
ADD COMMENT
Topic
Name
9+5 =