
March 6th, 2012, 09:35 PM
|
|
Registered User
|
|
Join Date: Dec 2011
Posts: 6
Time spent in forums: 57 m 49 sec
Reputation Power: 0
|
|
|
Help Requested - how to find last Sunday's date if a date is given
Hi All,
I have got a requirement for my project. It is as follows,
If I pass today's date as a parameter to a command/script, it should derive the previous Sunday's date. ( ie if 201200307 is passed, the command/script should return 20120304).
Is there a way we can do it ? I would prefer to use a command instead of a script. Any thoughts will be appreciated.
Thanks
Freddie
|