[WBEL-users] date command
Adrian Snyman
adrians at turnkey.web.za
Mon Jul 4 06:52:56 CDT 2005
On Monday 04 July 2005 13:19, Andrew Vong wrote:
>
> Hi,
>
> I am currently using the following command -
>
> date "+%d/%m/%Y" to get me the date in the following format 04/07/2005.
>
> I am trying to set the %d (day) to 1 day before... so when I run --> date
> "+%d/%m/%Y" <-- it should give me yesterday's date (i.e. 03/07/2005)
>
> Can someone help show the way?
>
> Thanks in advance. Appreciate it.
>
> Best Regards,
> Andrew
Try:
date -d "-1 day" "+%d/%m/%Y"
Regards
Adrian
--
/*
Disclaimer - These opiini^H^H damn! ^H^H ^Q ^[ .. :w :q :wq :wq! ^d X^? exit X
Q ^C ^c ^? :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZZZZZ
^H man vi ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d man help ^C
exit ?Quit ?q CtrlShftDel "Hey, what does this button d..."
*/
More information about the Whitebox-users
mailing list