Computing.Net > Forums > Unix > Get Tomorrow's Date in ddmmyy

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Get Tomorrow's Date in ddmmyy

Reply to Message Icon

Name: covina
Date: October 3, 2003 at 07:52:19 Pacific
OS: aix
CPU/Ram: 200
Comment:

How do i get tomorrow's date in ddmmyy format.
I need in korn shell script.

Any feed back will be appreciated

TIA
Covina



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: October 3, 2003 at 11:00:26 Pacific
Reply:

William Robertson has done some fine work with date calculation he chose to share with us here.

http://www.williamrobertson.pwp.blueyonder.co.uk/code/shift_date.txt


0

Response Number 2
Name: WilliamRobertson
Date: October 3, 2003 at 16:06:47 Pacific
Reply:

Thanks David!

After downloading my fine script, try

shift_date $(date +"%Y%m%d") +1 | sed 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2/'


0

Response Number 3
Name: Don Wilson
Date: October 12, 2003 at 13:49:50 Pacific
Reply:

As a related question, how do I find the day of the week for a future day. As I write, today is Sunday, October 12th. What day of the week will October 31st be?

In advance, thanks for any help.

Don
Marietta, Ga.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Get Tomorrow's Date in ddmmyy

Calculate Previous Date in ksh www.computing.net/answers/unix/calculate-previous-date-in-ksh/4282.html

how to calculate date (urgent) www.computing.net/answers/unix/how-to-calculate-date-urgent/5352.html

Getting old date into variable www.computing.net/answers/unix/getting-old-date-into-variable/5223.html