covert date to string

Results 1 to 2 of 2

Thread: covert date to string

  1. #1
    Join Date
    Dec 1969

    Default covert date to string

    Hey guys - I need to convert a date to a string- what I want to do is retrieve the time, convert it to a string, set it as a cookie in string form. I am using a time stamp as the user id (I do check later to make sure it&#039;s unique)<BR>here&#039;s the code I was using for it, but it still returns the date as KEY1=08%2F23%2F2001+12%3A25%3A57+PM when I want "08/23/2001 12:25:57 PM"<BR>I want the date as a string because it seems to have data mismatch problems if I save it as a date and try to retrieve that as a user id. Any suggestions?<BR>&#060;%<BR>DIM userid, vehicleno,usertextid<BR>userid=now()<BR>usertextid =cstr(userid)<BR><BR>vehicleno=1<BR>Response.cooki es("userid").expires= date()+30<BR>Response.cookies("userid")("key1")=us ertextid<BR>Response.cookies("userid")("key2")=veh icleno<BR>%&#062;

  2. #2
    Join Date
    Dec 1969

    Default look up FormatDateTime()

    in the FM

Posting Permissions

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