Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js create date from string

new Date('2021-08-28')	// Sat Aug 28 2021 18:17:28 GMT+0600 (Bangladesh Standard Time)
new Date('2021-08-21').toLocaleDateString()	// 8/28/2021
 
PREVIOUS NEXT
Tagged: #js #create #date #string
ADD COMMENT
Topic
Name
5+7 =