Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Date Format error with af:selectInputDate

 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
04/09/0007

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?



Thanks,
Shriniwas
 
The City calls upon her steadfast protectors. Now for a tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic