Modify

Opened 16 years ago

Closed 16 years ago

#1666 closed Bug (Fixed)

Format conflict for date control And GUICtrlSetData()

Reported by: GEOSoft Owned by: J-Paul Mesnage
Milestone: 3.3.7.0 Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: Cc:

Description (last modified by J-Paul Mesnage)

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

Attachments (0)

Change History (2)

comment:1 by J-Paul Mesnage, 16 years ago

Description: modified (diff)

comment:2 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.7.0
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed by revision [5865] in version: 3.3.7.0

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.