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
15
ig-date-picker format change
posted

Hi Team,

How can I change the format of date - to  below format- I want '.' separated  date month and year

  

Currently Date is coming in -   separated by '/'

I need dot instead of slash.

Thanks & Regards,

Sweeti

  • 720
    Offline posted

    Hello Sweeti,

    Thank you for contacting Infragistics Community!

    I believe you will find the following sample I have prepared for you very helpful. As you can observe I’m using the igxDatePicker formatter function in order to display the date value in the desired format (dd.MM.yyyy).  In case you’re using the editable dropdown mode of the igxDatePicker I suggest setting its mask to the same (dd.MM.yyyy) so that in case the user try to modify the date via typing and not through opening the dropdown containing the calendar the date would remain in the same format. In case you’re using the dialog mode providing a mask string is not necessary.      

    If this sample is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me for further investigation.

    Looking forward to hearing from you.

    Best Regards,
    Martin Evtimov
    Entry Level Software Developer
    Infragistics, Inc.