Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge: Compute number of days between two dates.
#1
Given:
1) Two date strings, D1$ and D2$.
2) They should be in the format: YYYYMMDD.
3) You must check them for validity, e.g., 20030229 and 20030931 and 1999019 are all invalid.
4) Once they're valid, figure out how to compute the number of days (positive or negative) of D2$ minus D1$.
*****
Reply


Messages In This Thread
Challenge: Compute number of days between two dates. - by Moneo - 07-17-2003, 12:08 AM
My Code - by Meg - 07-17-2003, 04:40 AM
quick question - by Meg - 07-17-2003, 04:53 AM
Re: My Code - by Moneo - 07-17-2003, 05:09 AM
from scratch - by Meg - 07-17-2003, 09:01 AM
p.s. - by Meg - 07-17-2003, 09:07 AM
Re: p.s. - by oracle - 07-18-2003, 05:48 AM
Re: p.s. - by na_th_an - 07-18-2003, 06:35 AM
yep - by Meg - 07-18-2003, 06:58 AM
single line of code - by Meg - 07-18-2003, 08:27 AM
comments - by Meg - 07-18-2003, 08:36 AM
... - by Meg - 07-19-2003, 02:44 AM
uh oh - by Meg - 07-19-2003, 07:04 AM
hm. - by Meg - 07-20-2003, 01:47 AM
yeah - by Meg - 07-22-2003, 05:32 AM
Re: uh oh - by Blitz - 07-22-2003, 07:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)