Dates in ASP?

Results 1 to 3 of 3

Thread: Dates in ASP?

  1. #1
    Chris Clarke Guest

    Default Dates in ASP?

    Is there any way of specifically declaring a variable as type Date in ASP (VBScript)?? I have tried Dim xyz As Date but this creates an error. <BR><BR>Alternatively, is there any function I can use to convert a populated variable to a date??<BR><BR>Thanks,<BR><BR>Chris

  2. #2
    Ceema Guest

    Default RE: Dates in ASP?

    To convert a string to a date you have to use<BR><BR>XYZ=cdate(date)

  3. #3
    Join Date
    Dec 1969

    Default RE: Dates in ASP?

    You can&#039;t DIM a variable AS anything in vbscript. It will always give you an error. All variables are variants. You can change them afterward, eg. cdate(yourdate) or cint(yourvariable) etc.

Posting Permissions

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