Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
293 B
2
Indexable
  const myDate = moment();    
  console.log('myDate', myDate) //myDate Moment<2023-10-11T10:48:27+00:00>
  const other = myDate.endOf("day");
  console.log('myDate', myDate) //myDate Moment<2023-10-11T23:59:59+00:00>
  console.log('other', other) //other Moment<2023-10-11T23:59:59+00:00>