Subject | Subtrac a day from a date: how? |
---|---|
Author | Marco Menardi <mmenaz@lycosmail.com> |
Post date | 2003-01-07T21:26:30Z |
Hi, how can I subtract a day from a date? I mean, I have the date
(yyyy-mm-dd format):
2003-01-07
and I want to subtract one day so I will have:
2003-01-07
(of course, if 2003-02-01 i want 2003-01-31...)
I've tried a Delphy like:
mydate = start_date_field - 1;
but it raises an error...
thanks
Marco Menardi
(yyyy-mm-dd format):
2003-01-07
and I want to subtract one day so I will have:
2003-01-07
(of course, if 2003-02-01 i want 2003-01-31...)
I've tried a Delphy like:
mydate = start_date_field - 1;
but it raises an error...
thanks
Marco Menardi