• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date Format error with af:selectInputDate

Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am using <af:selectInputDate> in my application for one of the page.I have added <af:convertDateTime pattern="MM/dd/yyyy"/> for formatting user entered date value.i have also added valuechange listener for this component as well, just to check whether user has actually modified the value in this textfield either manually or by Date picker.

However, if user enters manually value in the textbox, say 04/09/2007, in the valuechange listener method when i have retrieved the user entered value from ValueChangeEvent object using following snippet:

i could see the date in the following format when printed on console

due to this incorrect format, i am facing problems in subsequent operations.

can anybody help me in understanding the reason behind the same as well as can you suggest me code changes (if any) so that i will get proper date in the listener method?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic