Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Remove seconds from GUICtrlCreateDate?

$
0
0
Hi,
Would this be possible and if so how as I'm not having any luck with the search or able to work it out myself.

I was wanting to remove the seconds from the below.

As per the Example from GUICtrlCreateDate in the help file.

The below  Example file would add a time that can default to say 11:00 and then be changed with the click of the mouse should it need be. Would it be possible to do this without the Seconds present?

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

Local $n, $msg

GUICreate("My GUI get time", 200, 200, 800, 200)
$n = GUICtrlCreateDate("11:00", 20, 20, 100, 20, $DTS_TIMEFORMAT)
GUISetState()

; Run the GUI until the dialog is closed
Do
$msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE

MsgBox(0, "Time", GUICtrlRead($n))
GUIDelete()

Thanks for any help possible.

Viewing all articles
Browse latest Browse all 12506

Trending Articles