Date time calculations

Results 1 to 3 of 3

Thread: Date time calculations

  1. #1
    Join Date
    Dec 1969
    Posts
    1

    Default Date time calculations

    If anyone could give me some pointers would appreciate it. I have an entrance page to my mall.Based on the time of the day and weekday I want to redirect my visitors. I tried getting the time in vbshort format and subtracting from my designated starttime but kept getting erros of type mismatch. Any help would be appreciated

  2. #2
    Sean Guest

    Default RE: Date time calculations

    Are you using the dateDiff function:<BR><BR>DateDiff(interval, date1, date2) ??<BR><BR>Interval is a String:<BR> "h" for hours<BR> "d" for days<BR> "w" for weeks<BR> <BR>date1 and date2 are of type Date.<BR>

  3. #3
    Richard L. Guest

    Default RE: Date time calculations

    I&#039d need to see more code to really tell you.. but if you&#039re getting type mismatch errors true &#039coercing&#039 both dates into becoming VB date by using Cdate(yourdate).<BR><BR>Note also you can see what type ASP thinks your varible is by returning the value from the VarType(varname) function.<BR><BR><BR><BR>

Posting Permissions

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