This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
vba:classes:date:index [05.01.2016 08:42:40] yaslaw |
vba:classes:date:index [30.03.2016 14:00:00] yaslaw |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
<const> | <const> | ||
- | versiondt=1.5.0 | + | versiondt=1.8.0 |
- | vdatedt=04.01.2016 | + | vdatedt=30.03.2016 |
- | versiondi=1.3.0 | + | versiondi=1.5.0 |
- | vdatedi=04.01.2016 | + | vdatedi=30.03.2016 |
fnamedt=datetime.cls | fnamedt=datetime.cls | ||
fnamedi=dateinterval.cls | fnamedi=dateinterval.cls | ||
Line 60: | Line 60: | ||
Ein kleines Einzeilerbeispiel, bei dem 3 Moante und 4 Tage zu einem defniertem Datum hinzugezählt wird | Ein kleines Einzeilerbeispiel, bei dem 3 Moante und 4 Tage zu einem defniertem Datum hinzugezählt wird | ||
- | <code vb>?DateTime(#8/25/2014#).add("P3M4D").format("DD.MM.YYYY") | + | <code vb>?DateTime(#8/25/2014#).add("P3M4D").dateValue |
29.11.2014</code> | 29.11.2014</code> | ||
Und dasselbe über die Serial-Methode des [[vba:classes:date:dateinterval:index]] | Und dasselbe über die Serial-Methode des [[vba:classes:date:dateinterval:index]] | ||
- | <code vb>?DateTime(#8/25/2014#).add(DateInterval.serial(,3,4)).format("DD.MM.YYYY") | + | <code vb>?DateTime(#8/25/2014#).add(DateInterval.serial(,3,4)).dateValue |
+ | 29.11.2014</code> | ||
+ | |||
+ | Und nochmals dasselbe, mit der addSingleValue() Methode des DateTime Objektes | ||
+ | <code vb>?DateTime(#8/25/2014#).addSingleValue("M", 3).addSingleValue("D", 4).dateValue | ||
29.11.2014</code> | 29.11.2014</code> | ||