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
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
javascript date format mm/dd/yyyy
var date_format = new Date();
document.write(innerHTML = date_format.getMonth()+'/'+ date_format.getDate()+'/'+date_format.getFullYear());
javascript date format
const d = new Date('2010-08-05')
const ye = new Intl.DateTimeFormat('en', { year: 'numeric' }).format(d)
const mo = new Intl.DateTimeFormat('en', { month: 'short' }).format(d)
const da = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(d)
console.log(`${da}-${mo}-${ye}`)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us