Hi, I created a gui with date field but formatted as time in HH:mm. It always shows "now-time". Even if I try to set it with GUICtrlSetData.
#include <DateTimeConstants.au3>
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
Example()
Func Example()
GUICreate("My GUI get date", 200, 200, 800, 200)
Local $idDate = GUICtrlCreateDate("", 20, 20, 100, 20, $DTS_TIMEFORMAT)
; to select a specific default format
Local $sStyle = "HH:mm" ; Just display hours and minutes <<<<<<<<<<<<<<<<<<<<<<<<<<<<
GUICtrlSendMsg($idDate, $DTM_SETFORMATW, 0, $sStyle)
ConsoleWrite(GUICtrlRead($idDate) & @CRLF)
GUICtrlSetData($idDate, "00:00")
ConsoleWrite(GUICtrlRead($idDate) & @CRLF)
GUISetState(@SW_SHOW)
; Loop until the user exits.
While GUIGetMsg() <> $GUI_EVENT_CLOSE
WEnd
MsgBox($MB_SYSTEMMODAL, "Time", GUICtrlRead($idDate))
EndFunc ;==>Example
How can I set the time field with another time and how can this field be set blank?
Regards, Conrad