#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    95
    Rep Power
    11

    Wink Date Issue with Jscript


    I usually work in ASP VBScript but I have taken over a project that uses an MS Access database to store dates in a Date/Time field.
    The date in the database is:
    23/09/2011

    However when rendered onto the page using ASP Jscript is appears as:
    Fri Sep 23 00:00:00 UTC+0100 2011

    Can anybody direct me as to how I can get it to appear on the page as it does in the database using Jscript?

    Thanks in advance
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,424
    Rep Power
    4539
    Do you mean you're using jscript for the server-side asp code?

    In vbscript on the server you'd probably use the formatdatetime() function to make the date display as you want. In jscript I don't know, sorry.
    ======
    Doug G
    ======
    The man who doesn't read good books has no advantage over the man who can't read them.
    --Mark Twain

IMN logo majestic logo threadwatch logo seochat tools logo