Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004

    Unanswered: Server Date n Time


    I my most of ASP pages i am using System date and time for getting recored from DB. But in this case may be user end have different date and time setting.

    I want to use my hosting server date n time as a system date n time ?

    is it possible ?let me know


  2. #2
    Join Date
    Jun 2003
    I often use something like this for where the Web hosting time is different from the company's time:

    mintServerToOrgHourOffset = 1 ' Server is Mountain Time and org is Central Time.
    mvarOrgCurDtTime = DateAdd("H", mintServerToOrgHourOffset, Now())
    mvarOrgCurDt = DateValue(mvarOrgCurDtTime)
    mvarOrgCurTime = TimeValue(mvarOrgCurDtTime)
    mvarOrgCurTimeExclSec = TimeValue(jpsvbFormat(mvarOrgCurDtTime, "type:time;pattern:h:nn am/pm"))
    J. Paul Schmidt, Freelance Web and Database Developer
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

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