Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to validate dates? (month and day only)
Message
 
 
To
29/12/2000 11:38:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00457589
Message ID:
00457837
Views:
27
Cetin,

>I think you don't misread but I miswrite :)
>date(1999,2,29) would return an empty date but Joe might need it to be treated valid time to time. For example :
>
>'Please enter check date' and 2, 29 picked. For a special case it might mean process all dates in table where day(myDate)=29 and month(myDate)=2 (I see you smiling seeing an example with solution in itself :)
>What I mean I simply don't know if Feb29 would always be invalid for Joe or not.

I tihnk I see what you are saying...he might want to have Feb 29th be a repeating date or something, so even if it is invalid for a certain year, it might be valid later...the only day of the year that can sometimes disappear! I see what you are saying now, and it is as elegant as your original solution!

Happy New Year!

JoeK
Previous
Reply
Map
View

Click here to load this message in the networking platform