Also to this point - since CF is dynamically typed, there is no guarantee on
how dates will be formatted at any stage during your application lifecycle.

Mark

On Thu, Jan 14, 2010 at 1:23 PM, Cody Caughlan <[email protected]> wrote:

> Hmm, I think thats normal behavior. It sounds like you're suggesting
> that the JSON serializer should encode a Date as
>
> "{ts '2010-01-13 19:09:09'}"
>
> Which your Javascript JSON decoder would need to understand. But the
> {ts} construct is a CF one. Most JSON encoders/decoders would encode a
> date using a string but in a format that is commonly accepted, such as
> YYYY-MM-DD HH:MM:SS.ms
>
> Microsoft has a blog post on this here:
>
> http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx
>
> They say: "The second approach, which is what most people settled on,
> is to adopt some string form of date and just interpret any string
> that conforms to this format as a date."
>
> Which is what we have done as well.
>
> YMMV.
>
> /Cody
>
> On Wed, Jan 13, 2010 at 6:13 PM, Scott Brady <[email protected]> wrote:
> > "{ts '2010-01-13 19:09:09'}"
>
> --
> Before posting questions to the group please read:
>
> http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
>
> You received this message because you are subscribed to the Google Groups
> "transfer-dev" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/transfer-dev?hl=en
>



-- 
E: [email protected]
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com
-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

Reply via email to