• Welcome to Valhalla Legends Archive.
 

Can someone please help...

Started by AnThRaXBoT, December 18, 2002, 10:37 AM

Previous topic - Next topic

AnThRaXBoT

Can someone please help me get my damn time stamp to 12 hour time? I've tried multiple things and none of which seem to work...

Here is the code,
strTimeStamp = "[" & Format(Date, "mm/dd/yy") & " " & Format(Time, "hh:mm:ss") & "] "

I've tried switching the hh:mm:ss to HH:MM:SS and there is no difference, I've tried just using h:mm:ss and still nothing.

Thanks in advance!

erase

#1
public sub timestamp()
AddChat "<", &H808080, Format(Time, "hh:mm:ss"), &H808080
AddChat ">", &H808080
end sub


usage:

Timestamp
AddChat user & " has entered the channel"

Grok

#2
erase,

hope you don't mind a suggested upgrade in your solution.

Public Sub Timestamp()
    AddChat "<", &H808080, Format(Time, "HH:MM:SS AMPM"), &H808080
    AddChat ">", &H808080  
End Sub