Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript date format

function getDate(date) {
  let mydate = new Date(date);
  let day = mydate.getDate()
  let month = ["Januari", "Februari", "Maret", "April", "Mei", "Juni",
	"Juli", "Agustus", "September", "Oktober", "November", "Desember"
    ][mydate.getMonth()];
  return day + ' ' + month + ' ' + mydate.getFullYear();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #date #format
ADD COMMENT
Topic
Name
9+3 =