Jump to content
Sign in to follow this  

Need some help in adding Time

Recommended Posts


Hi, Is it possible to add the time that have created in GUICtrlCreateDate ?

$date + $timeA = 2011/01/01 00:00:01

$date + $timeA + $timeB = 2011/01/01 12:23:47

Or in the format "YYYYMMDDHHMMSS"

#include <GUIConstantsEx.au3>
#include <DateTimeConstants.au3>

GUICreate("My GUI get date", 200, 200, 800, 200)
    $date = GUICtrlCreateDate("2010/01/01", 10, 10, 185, 20)
    $timeA = GUICtrlCreateDate("00:00:01", 30, 40, 100, 20, $DTS_TIMEFORMAT)
    $timeB = GUICtrlCreateDate("12:23:46", 30, 80, 100, 20, $DTS_TIMEFORMAT)

    $msg = GUIGetMsg()
 Until $msg = $GUI_EVENT_CLOSE

Share this post

Link to post
Share on other sites

See the _DateAdd function in the Helpfile.

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.