Private Declare Function SetSystemTime Lib "kernel32" (lpSystemTime As SYSTEMTIME) As Long
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
Thank to both of you (gwdash and denniswrenn)
You've helped me and really solved my problem !!
well it seamed to me so simple problem I was actually quite embarrassed to post my question, and at the end it worked, mow another problem of my programs has been solved. thaks again.