Skip to main content

On a Windows system (Windows version is 10.0.20348.1970) running UV 11.2.5 in PICK format, we have a BASIC program that executes a DIR command. EXECUTE "DOS /c DIR" CAPTURING OUTPUT 

The time column shows the timestamps in 24 hour format. However from a Windows DOS Command window, if we type DIR the times are in 12 hour format. 

My question is how can we get the time format to be in 12 hour format when running the  program? What is UV looking at to determine the time format? 

BTW we get same results when we use DOS command at TCL to get to the DOS environment and then type DIR. 

Screen shot attached with Windows Command prompt window on left and Accuterm on right.

Thanks in advance.

On a Windows system (Windows version is 10.0.20348.1970) running UV 11.2.5 in PICK format, we have a BASIC program that executes a DIR command. EXECUTE "DOS /c DIR" CAPTURING OUTPUT 

The time column shows the timestamps in 24 hour format. However from a Windows DOS Command window, if we type DIR the times are in 12 hour format. 

My question is how can we get the time format to be in 12 hour format when running the  program? What is UV looking at to determine the time format? 

BTW we get same results when we use DOS command at TCL to get to the DOS environment and then type DIR. 

Screen shot attached with Windows Command prompt window on left and Accuterm on right.

Thanks in advance.

Windows maintains user-specific profiles for date/time formats.  Try logging in to Windows (but not into UV) as the UV user, and configure that user's date/time format.  Then repeat the operation.