Yesterday

Yesterday
gives a DateObject representing the previous day.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Find yesterday's date:

In[1]:=
Click for copyable input
Out[1]=

Get a DateList representing yesterday's date:

In[2]:=
Click for copyable input
Out[2]=

There is a difference of two days between Tomorrow and Yesterday:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2014
(10.0)