1

we are migrating contents from Sitecore 9.1 to Sitecore 10.0. however after we moved our contents, we encounter display behavior in some of the date formats. This is how the dates are displayed:

enter image description here

In the example above, only the day was displayed. so it appears in the "d M, y" format only the "d" is evaluated. same thing happened in other date formats, only the characters before the first space is evaluated. I checked the Date field and it is using a Date data type in the data templates. Both dates above is linked to the same Date field.

we can't debug the codes because the component is using the out-of-the-box features of Sxa.

anyone has encountered the same issue? any input will be appreciated.

2
  • can you check raw value for fields and compare if these hold similar format Feb 23 at 13:15
  • raw value is in this format: 20200508T105600Z
    – Borj
    Feb 26 at 14:44
0

This post shed some light on my issue: Not able to add space in date time format parameter this is known issue since Sc 9.3. If you are using SxA, you can use Scriban to display the date in Full view:

{{ sc_field i_item 'Date' [ [ 'format', 'd\nM,\nyyyy' ] ] }}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.