Opened 13 years ago

Closed 13 years ago

#1666 closed Bug (Fixed)

Format conflict for date control And GUICtrlSetData()

Reported by: GEOSoft Owned by: Jpm
Milestone: Component: AutoIt
Version: 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

$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 Changed 13 years ago by Jpm

  • Description modified (diff)

comment:2 Changed 13 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [5865] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.