Time VB

G

Guest

I have the following time clock in my main menu:

Private Sub Form_Timer()
Me!lblClock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm:ss AMPM")
End Sub

Private Sub cmdClockStart_Click()
Me.TimerInterval = 1000
End Sub

Private Sub cmdClockEnd_Click()
Me.TimerInterval = 0
End Sub

It shows : viernes, sep 1 2006, 08:43:22
Iwould like that it shows: viernes, 1 sep 2006, 20:43:22

How do I have to change the format?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Ontimer Questions 10
The clock on forms 5
Forms Error Timer 3
Clock or operator error? 2
Use Stopwatch to trigger event 2
clock 2
Timer event either not triggering, or not working 1
hh:mm:ss on a timer 2

Top