Tomorrow's date.

Blitz3D Forums/Blitz3D Beginners Area/Tomorrow's date.

Farflame(Posted 2005) [#1]
Any idea how I'd work out tomorrow's date using currentdate()? Or what the date will be in a week's time?


DJWoodgate(Posted 2005) [#2]
http://www.blitzbasic.co.nz/codearcs/codearcs.php?code=298

And this describes the algorithm
http://vsg.cape.com/~pbaum/date/jdalg.htm
http://vsg.cape.com/~pbaum/date/jdalg2.htm

And this might be useful
http://vsg.cape.com/~pbaum/date/date0.htm
http://vsg.cape.com/~pbaum/date/analy1.htm


Farflame(Posted 2005) [#3]
Thanks, that's exactly what I needed :)


Farflame(Posted 2005) [#4]
Now I think about it, I could also use a function to return a string for what the date would show in .... say 7 days time. I'm sure it can be done by fiddling around with the top routine, but it's a bit confusing - is there a routine that already does this? For example, if want to know the date in 7 days time, and it returns 28 Jan 2005 (for example).