realbasic-nug.de
[Top] [All Lists]

Re: Datumsrechnen ist nicht einfach :-(

To: REALbasic NUG German <realbasic-nug dot de at lists dot realsoftware dot com>
Subject: Re: Datumsrechnen ist nicht einfach :-(
From: Andreas Bernhardt <rb at andreasbe dot de>
Date: Fri, 31 Dec 2004 18:08:26 +0100
Delivered-to: realbasic-nug dot de at lists dot realsoftware dot com
References: <3187360745 dot 67712629806 at [192 dot 168 dot 1 dot 10]>

Am 31.12.2004 um 17:58 schrieb Stefan Mettenbrink:

 dim d as new Date

 d.Month=d.Month+1
 msgbox d.AbbreviatedDate
 d.Month=d.Month+1
 msgbox d.AbbreviatedDate

Hallo,

Ja, weil es keinen 31. Februar gibt.
Daher:
**
dim day as integer
day=d.day
d.day=1
d.month=d.month+1
d.day=day
msgbox d.AbbreviatedDate
**
und aufpassen, ob es den tag gibt ...

Aber komisch ist es schon.

grüße,

Andreas Bernhardt

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