House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

date format x -> cfprocparam cfsqltype="ColdFusion SQL TIMESTAMP"

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John M Bliss
04/16/2012 12:30 PM

An API is sending dates in whatever format this is: 2012-04-14T22:58:51-0700 ...which does not automagically work with cfprocparam cfsqltype="CF_SQL_TIMESTAMP" (to SQL Server). Before I "roll my own," does anyone know whether that format has a name and/or of a cflib.org function that'll convert it? -- John Bliss - http://about.me/jbliss

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Russ Michaels
04/16/2012 12:47 PM

I think the T designates a timestamp and the -0700 is a timezone adjustment you could try just removing one or both of those and see if it helps. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Quackenbush
04/16/2012 12:48 PM

Correct. Replace the 'T' with a space, and drop the '-NNNN' bits. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John M Bliss
04/16/2012 12:50 PM

Yeah. I guess "own-rolled," in this case, is stupid-easy.  :-)  Thanks. On Mon, Apr 16, 2012 at 11:48 AM, Matt Quackenbush <quackfuzed@gmail.com>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
LRS Scout
04/16/2012 12:48 PM

Isn't timestamp the UUID and datetime the correct datatype? Been a while for me as I'm retired now, but I think I remember something like that. ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 26, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference