I just opened up RB and copy and pasted in the code... with the  
addition of msgBox tim at the end.  The answer to your question; the  
code as presented will give you the result exactly as described in  
your most recent query.  (You should give it a try.  Takes all of  
about 15 second ;)


On May 6, 2007, at 10:16 AM, Jim Wagner wrote:

> Does format() give you 20:00:00 for 8PM and 00:15:00 for 15 minutes
> after midnight?
>
> Thanks
> Jim
>
> On May 6, 2007, at 12:11 AM, Steve Garman wrote:
>
>> I take it you're looking for something more complicated than
>>   dim d as new date
>>   dim tim as String
>>   tim = format( d.Hour, "00" ) _
>>   + ":" + format( d.Minute, "00" ) _
>>   + ":" + format( d.Second, "00" )
>>
>>
>> -- 
>> Steve Garman
>> Using REALbasic Professional on Windows XP Pro

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to