Private Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type
Private Declare Sub GetLocalTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
Public Function TimeStamp() As String
Dim SysT As SYSTEMTIME
GetLocalTime SysT
TimeStamp = "*" & SysT.wDay & "/" & _
SysT.wMonth & "/" & _
SysT.wYear & " " & _
SysT.wHour & ":" & _
SysT.wMinute & ":" & _
SysT.wSecond & "* "
End Function
Go nuts. :P
how 'bout
Public Function TimeStamp() As String
TimeStamp = "*" & Format(Now, "dd/MM/yyyy hh:nn:ss AM/PM") & "* "
End Function
What were you doing with that API call? ::)
had nothing better to do :P
You make the API call to get SysT, then you still use Now..
my screwup 8(
thx for pointing that out +1 to you ^^
Thanks, now it's a little more useful, if for nothing else then for something to learn off of :)
Ah Thank you!
I was trying to figure out how to get milliseconds on my timestamp ;D
Quote from: FuzZ on March 11, 2004, 03:04 PM
Ah Thank you!
I was trying to figure out how to get milliseconds on my timestamp ;D
Goodjob reviving a 7 month old topic.
Quote from: FuzZ on March 11, 2004, 03:04 PM
Ah Thank you!
I was trying to figure out how to get milliseconds on my timestamp ;D
Good job looking at old posts instead of reasking the same question! I assume you used the search feature?
ooh, search, gotta love it. Too bad it doesn't search other forums too, or something of the sort that has a larger info scope.
Advanced Search
Quote from: FuzZ on March 11, 2004, 03:04 PM
Ah Thank you!
I was trying to figure out how to get milliseconds on my timestamp ;D
Your welcome.