yesterday()
public

Returns a new Date representing the date 1 day ago (i.e. yesterday’s date).