Results 1 to 2 of 2

Thread: help in date format

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    88

    help in date format

    Hi all
    I have 3 drop down box for month date and year.
    i need to concatenate the same like 11/22/2006 into one one variable so that
    only date format should insert in databse.
    how can i do the same?
    Please help.
    thanks

  2. #2
    Addicted Member
    Join Date
    Jan 2007
    Posts
    143

    Re: help in date format

    in the processing page:
    Code:
    Dim sd
    sd = Request.Form("bmonth") & "/" & Request.Form("bday") & "/" & Request.Form("byear")
    strSQL = "INSERT INTO table " & _
            "(theDate) " & _
            "VALUES(#" & sd & "#)"
    for access, use
    Code:
    #
    for sql server, use
    Code:
    '

Posting Permissions

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



Click Here to Expand Forum to Full Width