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

date formatting

Community Beginner ,
Jul 12, 2021 Jul 12, 2021

Document Generation API: How to format merged data date values? There are very basic maths function but no function for (re)formatting a date that has been supplied in http://en.wikipedia.org/wiki/ISO_8601 format.

TOPICS
Document Generation API
748
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
Engaged ,
Jul 13, 2021 Jul 13, 2021

Hi, Document Generation uses JSONata behind the scenes, but currently, date formatting (https://docs.jsonata.org/date-time-functions) is broken. I've reported it. You can, however, format your dates in your data *before* you send it to our API. Make sense?

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
New Here ,
Feb 02, 2024 Feb 02, 2024

Looks to still be broken almost 3 years later???

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
Adobe Employee ,
Feb 02, 2024 Feb 02, 2024

Yep, but to be clear, you can still just format it yourself. 

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
New Here ,
Feb 02, 2024 Feb 02, 2024

Yes, I just have add 5 more (duplicate) fields to my table...

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
Adobe Employee ,
Jul 31, 2024 Jul 31, 2024
LATEST

A little late, but to be clear, you don't have to add anything to your database. You would get your data, reformat the values in your code before sending it to the API.

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