Hello,

try:

Public Sub .......()

Dim TimeS As String

 TimeS = Format(Hour(Now), "0#") & ":" & Format(Minute(Now), "0#") & ":" & 
Format(Second(Now), "0#") 

 Print TimeS

End


--- Dom 5/8/12, abbat <abbat...@mail.ru> ha scritto:

> Da: abbat <abbat...@mail.ru>
> Oggetto: [Gambas-user]  Time Format in 00:00:00 (Two digits)
> A: gambas-user@lists.sourceforge.net
> Data: Domenica 5 agosto 2012, 12:06
> 
> 
> Dim TimeS as String = Hour(Now) & ":" & Minute(Now)
> & ":" & Second(Now) 
> 
> We get a string like "9:8:4"
> But it would be better this way: "09:08:04"
> 
> Thanks
> -- 
> View this message in context: 
> http://old.nabble.com/Time-Format-in-00%3A00%3A00-%28Two-digits%29-tp34257082p34257082.html
> Sent from the gambas-user mailing list archive at
> Nabble.com.
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's
> security and 
> threat landscape has changed and how IT managers can
> respond. Discussions 
> will include endpoint security, mobile security and the
> latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to