Skysnake Posted August 4, 2016 Share Posted August 4, 2016 (edited) Hello Everyone _GUICtrlDTP_Create.htm I ran this straight out of the help file. Please note that my PC date display is correct, today is 04 Aug 2016. Yes the AutoIt script seems to think I am working in the future... I have two issues: (1) why would this be wrong and (2) how to force the date display to a format of my choice? Eg ISO compliant as in 2016-08-04 REGARDLESS of Windows locale settings? From what I understand this can be done, but I do not understand how? Thx Skysnake Edited August 4, 2016 by Skysnake Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 4, 2016 Moderators Share Posted August 4, 2016 SkySnake, 1. The script works fine for me - the correct date is displayed. 2. To format the DTP, you need to send a $DTM_SETFORMATW message - the UDF contains the _GUICtrlDTP_SetFormat function to do this. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Skysnake Posted August 4, 2016 Author Share Posted August 4, 2016 (edited) Hmm, thx @Melba23. Any idea where to look for the date error? I am sure this has to do with something in Windows 10 and not the AutoIt, coz only this machine gives the date wrong... Working on the standardized format now, thx Edited August 4, 2016 by Skysnake typo Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 4, 2016 Moderators Share Posted August 4, 2016 SkySnake, What does _Date_Time_SystemTimeToDateStr return? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now