Jun 20, 2003 #1 stx Programmer Joined Sep 24, 2002 Messages 62 Location BE Hi I want to display the current time This is my code: messagebox.show(now,"hh:mm" I get for example: 01:30 What i actually want is: 13:30 My computer settings are correct because my windows clock in my statusbar is showing 13:30. Can anyone help me? thnx
Hi I want to display the current time This is my code: messagebox.show(now,"hh:mm" I get for example: 01:30 What i actually want is: 13:30 My computer settings are correct because my windows clock in my statusbar is showing 13:30. Can anyone help me? thnx
Jun 20, 2003 #2 Kris11 Programmer Joined Jan 31, 2003 Messages 278 Location US stx, Try this Messagebox.show(now,"HH:mm" -Kris Upvote 0 Downvote
Jun 20, 2003 #3 upworth Programmer Joined Jun 19, 2003 Messages 9 Location US Here's two other options... MessageBox.Show(Now.TimeOfDay.ToString.Substring(0, _ Now.TimeOfDay.ToString.LastIndexOf(":")) OR MessageBox.Show(Now.Hour & ":" & Now.Minute) Upvote 0 Downvote
Here's two other options... MessageBox.Show(Now.TimeOfDay.ToString.Substring(0, _ Now.TimeOfDay.ToString.LastIndexOf(":")) OR MessageBox.Show(Now.Hour & ":" & Now.Minute)