Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding days to a date
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00749774
Message ID:
00750154
Views:
14
In addition to the answers that you already have, beware that if the field/variable is of type datetime then adding 1 will only add one second, so to add a day you need to add (60*60*24)

>Quick question:
>
>If I have a date (mm/dd/yyyy)... say 11/20/2003 and I want to add 24 days to it what would that code look like? I've tried it a number of ways but I'm not having any luck.
>
>The date is in Date format, the number of days is just entered into a textbox.
>
>Thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform