Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

yyyyMMdd input value displays incorrectly in DateTime field

SA-88231

Summary



In the DateTime input field, the yyyyMMdd input value displays incorrectly.
  • 20190814  > Today at 12:00 AM
  • 20190813  > Yesterday at 12:00 AM
  • 20190822  > 08/22/2019 in en_US locale setting
  • 20190822  > 2019/08/22 in ja_JP locale setting
===============================

Section上に配置した日付のテキストエリアに、
画面上で'20190808'と入力すると、'Yesterday at AM 12:00'と表示されてしまう。
期待動作は"2019/08/08"とスラッシュ入りでフォーマットされること。
スラッシュを入れるフォーマットは、テキストエリアのRead-only formatのカスタムで設定済み(添付資料参照)。



Error Messages



特になし


Steps to Reproduce

  1. Create a section with a DateTime control field.
  2. Configure Presentation as 'Display mode' to display value using read-only formatting.
  3. Input a value (for example, 20190814)
  4. Press the Tab key.


Root Cause



Invalid format displays after Tab out when the Date was input as a string and a custom format was input as YYYY/MM/dd.


Resolution



Apply HFix-55931.
Suggest Edit

Published December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us