Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get datetime yesterday angular

const today = new Date()
const yesterday = new Date(today)

yesterday.setDate(yesterday.getDate() - 1)

today.toDateString()
yesterday.toDateString()
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #datetime #yesterday #angular
ADD COMMENT
Topic
Name
1+7 =