Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js format date

	function displayDate(d) {
		[yyyy, mm, dd] = d.split(/[/:-T]/);
		return `${dd}-${mm}-${yyyy}`;
	}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #format #date
ADD COMMENT
Topic
Name
7+2 =