Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Location
    Edinburgh Scotland
    Posts
    23

    Unanswered: Date & time entry into Oracle with ASP

    This has me stumped, so I'm hoping you guys can assist with this?

    I have a hidden field on my ASP page that contains the current server date. When the use clicks save, an insert statement adds the collected data to a table in Oracle 8.

    I need to refine this. I want the hidden field to hold the current server date & time and insert this into the database. I can get this to work if I use 2 hidden fields (1 containing the date with the other containing the time). Thing is I want both the date & time in the date column.

    Any suggestions will prevent further hair loss.

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Set the default value of the field in the database to be the current date; thus letting the database engine do the work for you.
    George
    Home | Blog

  3. #3
    Join Date
    Oct 2004
    Location
    Edinburgh Scotland
    Posts
    23
    Thanks for guidance. I went ahead and did it this way.

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Glad I could be of some help

    And thank you very much for coming back and reporting how you went about resolving your issue!
    George
    Home | Blog

Posting Permissions

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