Autor Beitrag
SportGoofy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 47

Win XP Prof.
MS Visual C# 05 EE
BeitragVerfasst: Do 10.05.07 17:59 
Hi!

Ich habe mit FormatDateTime('dd.mm.yyyy', Now) das aktuelle Datum einer Variable (Text) zugewiesen.

Wie kann ich nun einfach das Datum um einen Tag erhöhen?
Gibt es was einfacheres als den "dd" String aus dem String rausschneiden in int umwandeln - erhöhen - und dann wieder dem String zuweisen?

Hatte auch überlegt, ob einfach Aktuelles Datum + '01.00.0000' funktioniert oder gibt es da eine Funktion oder so was? Was ist der einfachste Weg?
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 10.05.07 18:08 
Now ist vom Typ double.
Datum um einen Tag "erhöhen":
FormatDateTime('dd.mm.yyyy', now + 1) ;)
SportGoofy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 47

Win XP Prof.
MS Visual C# 05 EE
BeitragVerfasst: Do 10.05.07 18:27 
Das Leben kann so einfach sein 8) :roll: Man dankt.