realbasic-nug
[Top] [All Lists]

Re: About the Date Class and the Language Reference

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: About the Date Class and the Language Reference
From: "Steve Garman" <realbasic at garman dot demon dot co dot uk>
Date: Tue, 31 Jan 2006 11:27:19 +0000
Delivered-to: realbasic-nug at lists dot realsoftware dot com
In a message regarding Re: About the Date Class and the Language Reference
dated Mon, 30 Jan 2006 20:46:50 -0700, Joseph J. Strout said that ...

> It is, and it does.  A great deal of effort went into making sure it 
> works that way (well, except on the Mac, where such nice behavior is 
> provided by the OS).  If it's not documented, then this is an
> oversight in the documentation.

I you've got access to a Windows machine, try this.

  Dim d As New Date
  d.Month = d.Month - 12
  MsgBox CStr(d.Year)

It gives me 2004

--
Steve Garman
Using REALbasic 2006r1 Professional on Windows XP Pro


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>