Jun 20, 2003 #1 stx Programmer Sep 24, 2002 62 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 Jan 31, 2003 278 US stx, Try this Messagebox.show(now,"HH:mm" -Kris Upvote 0 Downvote
Jun 20, 2003 #3 upworth Programmer Jun 19, 2003 9 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)