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

To Adobe: SerializeJson future enhancement

Participant ,
Mar 12, 2024 Mar 12, 2024

To the CF team -


Please add an enhancement that allows us to select a datetime format for those date/time fields in our queries / structs.

 

There are times when I want to maintain the data exactly from my database so that it shows the same way in my SerializeJSON output.

 

Give me an option to select which dateformat to send to the client.

 

Thanks

219
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
Enthusiast ,
Mar 12, 2024 Mar 12, 2024
LATEST

How are you currently working around this issue?

Apparently serializejson() converts ColdFusion dates & times into strings that can be easily parsed by the JavaScript "Date" object. (withdrawn; "asDesigned")

My approach has been to use MSSQL query to use CONVERT to return timestamps as ISO8601 UTC VARCHAR strings using "SELECT CONVERT(VARCHAR(23), MyUTCDateColumn, 126) AS ISODateString".

 

If this enhancement doesn't exist in the bug tracker, please submit it and I'll upvote it.
https://tracker.adobe.com/

Here are some related bugs/requests:

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