PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Problem when calculate a date
Problem when calculate a date
Débuté par caddy, 28 mai 2016 18:11 - 5 réponses
Posté le 28 mai 2016 - 18:11
Hello,
I have no idea..
How to add the current date one or more months .
Please help..

Thank you, ..

Kind regard caddy
Posté le 30 mai 2016 - 15:20
Hi Caddy,

MyDate is date
MyDate..Month+=2

Best regards

--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International

Plus d'information sur http://fabriceharari.com
Posté le 31 mai 2016 - 09:16
Hi Frabrice,

many thanks for the answer.
But when i do this the result is only the month..

what do i wrong ?

many thanks,

caddy
Membre enregistré
102 messages
Popularité : +2 (2 votes)
Posté le 31 mai 2016 - 11:48
dMydate is Date
Trace(dMydate) //20160531
dMydate..Month += 2
Trace(dMydate) //20160731


--
http://arnoldconsult.de
WinDev 20 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL
Posté le 31 mai 2016 - 19:51
You have an error at line 7 of your code...

Best regards


--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International

Plus d'information sur http://fabriceharari.com
Posté le 01 juin 2016 - 08:19
Hi all,

many thanks .. ist work :)

KR caddy