Add date help Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Bad husband
Posts: 54
Joined: 21 Oct 2017, 13:38

Add date help

21 Mar 2018, 23:33

I’m building a GUI with radio buttons and edit boxes.

Basically the user will select one of the radio boxes and the enter a date (ddmmyyy).

Depending on the radio button selected it will add a specific number of days to the date that they entered.

I have checked the forums and have tried testing the script but I can’t get the date to add the number of days to the original date inputted.

Code: Select all


Vdate1 := “21022017”
vdays := 365
Date1 += % vdays, Days
Formattime, Date1, %Date1%, d MMM yyyy
Msgbox % Date1
What is wrong with the code?
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Add date help  Topic is solved

22 Mar 2018, 00:10

Code: Select all

vDate1 := 20170321000000
vDays := 365
vDate1 += vDays, Days
Formattime, vDate1, %vDate1%, d MMM yyyy
Msgbox % vDate1
Not tested.
Bad husband
Posts: 54
Joined: 21 Oct 2017, 13:38

Re: Add date help

22 Mar 2018, 19:49

Worked thanks BoBo

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: RandomBoy, scriptor2016 and 372 guests