Debug FormatDate("%hh:%ii:%ss", Date())  ; Will display the time using the 00:00:00 format 
How do you display in 12 hour time ? right now it is 24 hour
			
			
									
									
						Time
I'm not sure if there is a way to format it with the "FormDate" command but you do something like this with a procedure:
			
			
									
									
						Code: Select all
Procedure.s CurrentTime()
  timenow = Date()
  hour.s = FormatDate("%hh",timenow)
  
  If Val(hour) < 12 
    fulltime$ = FormatDate("%hh:%iiam",timenow)
  Else
    If hour <> "12" : hour = Str(Val(hour) - 12) : EndIf 
    fulltime$ = hour + FormatDate(":%iipm",timenow)
  EndIf
   
  ProcedureReturn fulltime$
  
EndProcedure
Debug CurrentTime()You can run a procedure inside another, but you cant declare one inside another.Rebe wrote:I have the Procedure working with a clock and I can't change it to add one more Procedure . it won't work . Need to change it with that pice of code if i can .
Said can't run Procedure in a Procedure .
Mark my words, when you least expect it, your uppance will come...
						

