How do I use GetLocalTime?
I wrote a VB6 app that uses date parts--DatePart("h", Now), but this part of the program does not appear to work on machines running Windows 95.
I was told to use an API call and was given this text:
Public 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
Dim ST as SYSTEMTIME
GetLocalTime ST
How do I use this info? Does it all go in a module? Is anything missing? Is there a better way to get current date and time parts that is supported by Windows 95?
Thanks!