Select to view content in your preferred language

Date from image is wrong on feature report when format is used

352
2
08-26-2019 11:12 AM
NicholasDay
New Contributor III

BUG? On our feature reports we display the date using ${photo_p | getValue:"date" | format:"MM/DD/YYYY"} However, this has resulted in some photos being printed with the wrong date. Through testing, I have found it has something to do with the format section of the code.

Error Example: Template and result.

Test Result. Removed the format section of code from the getValue date.

If there is a fix for this issue, please let me know, the users are accustomed to seeing the date in MM/DD/YYYY.

0 Kudos
2 Replies
BrandonArmstrong
Esri Regular Contributor

Hi Nicholas,

Can you please confirm that you are seeing two separate issues?

1. When formatting a date in the report template, the date that is returned is a day off

2. When not formatting the date in the report template, the date is returned in format YYYY/MM/DD

Thank you,

Brandon

0 Kudos
NicholasDay
New Contributor III

Hi Brandon,

The second is not so much an issue, more a preference; which is why I tried to use the format function. The first is an issue, the date returned when the format was applied was one day off.

0 Kudos