Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparisons between dates.
Message
 
 
To
11/03/1999 16:59:50
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentina
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00196547
Message ID:
00196556
Views:
22
>Hi all,
>
>A couple of questions:
>
>1) How can I compare a-date-field of my table whose format is mm/dd/yy
>with a date using SET CENTURY? That is if I set SET CENTURY TO 19 ROLLOVER 80, I have this date format mm/dd/yyyy in my txtBox but internally, in the table I have this(mm/dd/yy).
>2) How can I compare dates without Y2K conflict and take out data ?
>
>Should I set date-field to date format or in character/string mode using DTOS/DTOC/CTOD ?
>
>TIA

VFP is storing your dates with the century. So regular date math should still work. e.g., ldNextDay = DateField + 1, lnDays = Date() - DateField. You just have to make sure that whatever you SET CENTURY TO and ROLLOVER to are appropriate for the data being entered. It should not be necessary to convert between character string and date types.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform