Results 1 to 4 of 4

Thread: How can I change programatically the win98 sys date and time?

  1. #1
    Guest

    Question

    What is the method to change the win98 system date and time?
    Thanks in advance....

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    Code:
    Date = #8/6/00#
    Time = #3:12:00 PM#
    Look up the Date and Time statements in MSDN
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3
    Guest
    you can use the SetSystemTime API Call


    Code:
    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

  4. #4
    Guest

    Thanks

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width