Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Display of only Year in WebDatePicker
posted

Hi All,

For one of my pages i want to display only year and allow user should select only year.. is it possible i tried displaying month and year. but our client asks for only year. Is it possible to display only year.. kindly let me know.

Thanks in advance,

Godwin Jebakumar

Parents
No Data
Reply
  • 29417
    Verified Answer
    Offline posted

    Hello Godwin Jebakumar,

     

    Thank you for posting in our forum.

     

    I don’t think this is supported out of the box. The DatePicker is meant to display a calendar with days, moths and years.

    You could set  for the WebDatePicker the EditModeFormat="yyyy"  and DisplayModeFormat="yyyy" so that when you select a date then only the year part would be set in the input element. However even if you hide the days you still won’t be able to hide the months.

     

    I hope this was helpful. Let me know if there’s anything else I can help you with.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

Children