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

To Adobe: SerializeJson future enhancement

Explorer ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

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

Views

123

Translate

Translate

Report

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

Copy link to clipboard

Copied

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:

Votes

Translate

Translate

Report

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
Documentation