Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Concatate Date &Time values from a form & Do Insert

Participant ,
Mar 06, 2013 Mar 06, 2013

I am trying to combine a date value and a time value from a form submission into one datetime value and then insert it into a SQL server 8 data table.

Here are the formats

Date : 03/07/2013

Time : 08:07 PM

So somehow I need to concatate these 2 items and then insert the combined value into a SQL server 8 data table.  (datetime Data Type).

The inserted value should look like this

2013-03-07 20:07:00.000

Any help my dear cold fusion brothers?

541
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Mar 07, 2013 Mar 07, 2013

You probably want to use ParseDateTime to turn your two strings (concatenate them) into one date object.  See http://www.petefreitag.com/item/569.cfm for a useful example

Translate
Engaged ,
Mar 07, 2013 Mar 07, 2013
LATEST

You probably want to use ParseDateTime to turn your two strings (concatenate them) into one date object.  See http://www.petefreitag.com/item/569.cfm for a useful example

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources