English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How to change time format from 12-Hr format to 24-Hr format in VB 6.0? Thanks!

2007-01-26 18:34:56 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Haven't used VB6 in a while, but if you don't know, just write a function that will look at the current time and add 12 hours if the clock says PM. Should be pretty easy.

2007-01-28 09:49:05 · answer #1 · answered by Kenneth H 2 · 0 0

You don't have to change the time format at all, just change how it is displayed, the Format() function or property. Internally all dates are stored 24Hr format anyway.

2007-01-29 04:20:29 · answer #2 · answered by BataV 3 · 0 0

fedest.com, questions and answers