[REBOL] Re: add 1 month to date
From: carl::cybercraft::co::nz at: 24-Dec-2003 22:14
On 03-Apr-03, Mark Chang wrote:
> I am sure it is a simple question but some how I could not figure it
> out. How do you add 1 full month to the date variable. Example:
> a: 15/3/2003
> how do you add 1 month to "a" so that a becomes 15/4/2003? Add 31
> days can't do as some month has 30 and 31 days. Thanks.
>> a: 15/3/2003
== 15-Mar-2003
>> a/month
== 3
>> a/month: a/month + 1
== 4
>> a
== 15-Apr-2003
That help? :)
--
Carl Read
------------------------
United Nations Scorecard
20th Century - world wars: 1st half 2, 2nd half 0.
21st Century - world wars: Results not in.