Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Numeric Date Validation

by booter (Novice)
on Sep 30, 2003 at 15:41 UTC ( #295322=note: print w/replies, xml ) Need Help??


in reply to Re: Numeric Date Validation
in thread Numeric Date Validation

Hi,

The date format can be one of the following

yyyymmdd
yyyyddmm
yymmdd
yyddmm
ddmmyyyy
mmddyyyy
ddmmyy
mmddyy


In terms of range, the date can fall anywhere beween the present date (ie. 20030930, or is that 030930....see the difficulty?), and the most earliest date accepted, which is Jan 1st, 1900, so 19000101. Since a numberic cannot start with 0, this date cannot be represented by droping the century indicator (ie 19xx), so 000101 is not accepted.

This is a bit difficult to implement as a numberic. Let me know if you have any ideas. Thanks for your feedback.

Replies are listed 'Best First'.
Re: Re: Re: Numeric Date Validation
by menolly (Hermit) on Sep 30, 2003 at 17:01 UTC
    20030102 -- January 2nd, or February 1st? Does it matter for your application?
      Hello,
      No, it doesn't matter what the actual date is, as long as it is a VALID date, so it could be January 2nd, or February 1st.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://295322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2021-06-22 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (102 votes). Check out past polls.

    Notices?