Opened 14 years ago

Last modified 14 years ago

#1666 closed Bug

Format conflict for date control And GUICtrlSetData() — at Version 1

Reported by: GEOSoft Owned by:
Milestone: 3.3.7.0 Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: Cc:

Description (last modified by Jpm)

If you create a date control using the $DTS_SHORTDATEFORMAT and try to store it in an ini file the format is opposite to what is required to set the date later

GUICreate("Demo")
$Date = GUICtrlCreateDate("", 10, -1, 150,25,$DTS_SHORTDATEFORMAT)
$sCurrDate = GUICtrlRead($Date)
GUICtrlSetData($sCurrDate);; Oooops
MsgBox(0, "TEST", $sCurrDate)

$sCuuDate will be in the format dd/mm/yyyy and GUICtrlSetData(for a date control) clearly states that it must be in the format yyyy/mm/dd

Change History (1)

comment:1 Changed 14 years ago by Jpm

  • Description modified (diff)
Note: See TracTickets for help on using tickets.