Jump to content

Need some help in adding Time


ASut
 Share

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)
GUISetState()

 Do
    $msg = GUIGetMsg()
 Until $msg = $GUI_EVENT_CLOSE
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...