How do I format a date as ISO date(mongodb) using moment.js? https://stackoverflow.com/questions/63052605/how-do-i-format-a-date-as-iso-datemongodb-using-moment-js selectedDate = moment(new Date(), ‘YYYY-MM-DDT’) selectedDate.toISOString() : ‘2021-09-15T10:00:46.039Z’ elem.start_time: ‘Wed Sep 15 2021
Tag: dateTime
Handling Time Zone in JavaScript
Convert date to another timezone in JavaScript https://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript Handling Time Zone in JavaScript https://medium.com/@toastui/handling-time-zone-in-javascript-547e67aa842d#:~:text=In%20this%20scenario%2C%20you%20can,current%20time%20zone%20in%20minutes.&text=The%20return%20value%20of%20%2D540,minutes%20ahead%20of%20the%20target. var aestTime = new Date().toLocaleString(“en-US”, {timeZone: “Australia/Brisbane”}); console.log(‘AEST time: ‘+ (new
TimeZone
World Time Zones Map Time Calculation : one day = 24 hours 24 Parts; Circle has 360 degree 360/24 = 15 degree Each part has
Core Javascript
Concept of Immutable and Mutable Immutable : We can not change value of primitive type, all the primitive types are immutable Ex : null, undefined,