Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript date format dd-mm-yyyy

const dateString = "2020-10-30T12:52:27+05:30"; // ISO8601 compliant dateString
const D = new Date(dateString);  
const result = D.getDate()+"/"+(D.getMonth()+1)+"/"+D.getFullYear();
//output: 30/10/2020
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #date #format
ADD COMMENT
Topic
Name
5+7 =