Base solution for your next web application
Open Closed

New Datepicker #5693


User avatar
0
feloff created

I converted my application to the latest v6, starting with the angular application. I am having some issues with "Invalid Date" messages for the datepicker. The moment format from the service proxies seems to differ between those working, and those not. Invalid dates format - YYYY-MM-DDTHH:mm:ss.SSSS Valid dates format - YYYY-MM-DDTHH:mm:ss

How do we set the format so that the new datepicker works?

Thanks


3 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    you can try this approach to format the date value before sending the data to the server.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can check https://valor-software.com/ngx-bootstrap/#/datepicker#format

  • User Avatar
    0
    feloff created

    Used a test solution and the RAD tool to see how it implements dates with the new version. Pretty much exactly the same as how I did it (for obvious reasons). Also tested to see if converting to universal time in the AutoMapper helped but it didn't.

    Wanted to avoid pre- and post-formatting of dates but will check and format as per approach mentioned above (or using onchange events similar to what was done in edit-tenant-modal component in latest release). Thanks