Changing Date and time

Results 1 to 2 of 2

Thread: Changing Date and time

  1. #1
    Tony Guest

    Default Changing Date and time

    Im just starting to get into ASP and i have been working on a chat page using the one on the "Building a simple chat application" page from this website. The thing is im in the uk and the server im hosting the page on is in the US so the date and time that comes up is the US time. Is there some simple code i can insert to correct the time to UK?<BR>I will appreciate it if anyone can help.

  2. #2
    Join Date
    Dec 1969

    Default RE: Changing Date and time

    Try this (assuming the date to format is dtmDate):<BR><BR>strDate = Right("0" & Day(dtmDate), 2) & "/" & Right("0" & Month(dtmDate), 2) & "/" & Year(dtmDate)<BR><BR>It shouldn&#039t be too hard to see how you could write this as a function.<BR><BR>Dunc

Posting Permissions

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