Jacksparrow87
Technical User
Hi
Newbie here just asking a few simple questions regarding displaying my date and time in 24hour clock format (As it currently displays it in the 12hour clock format.)
In my application I display the date and time in 2 different places, for the first part I have used a ticker and the following coding:
lbldate.Text = Date.Now.ToString("dd MMM yyyy hh:mm:ss")
On the 2nd part I have used a date/time picker and changed the format to custom and the customformat to dd/MM/yyyy hh:mm
The coding I have used for the datetime picker is as follows:
dtp.Value = Date.Now
Any help would be excellent, thanks.
*Those who dont understand the difference a 24hour clock format would display the time as 18:09 compared to a 12 hour clock format which would display it as 6:09*
Newbie here just asking a few simple questions regarding displaying my date and time in 24hour clock format (As it currently displays it in the 12hour clock format.)
In my application I display the date and time in 2 different places, for the first part I have used a ticker and the following coding:
lbldate.Text = Date.Now.ToString("dd MMM yyyy hh:mm:ss")
On the 2nd part I have used a date/time picker and changed the format to custom and the customformat to dd/MM/yyyy hh:mm
The coding I have used for the datetime picker is as follows:
dtp.Value = Date.Now
Any help would be excellent, thanks.
*Those who dont understand the difference a 24hour clock format would display the time as 18:09 compared to a 12 hour clock format which would display it as 6:09*