Open Closed

minDate not working with abp-date-picker #5121


User avatar
0
trina.thompson created
  • ABP Framework version: v7.2.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

The abp-date-picker does not appear to be respecting the minDate option. According to the documentation, https://docs.abp.io/en/abp/7.2/UI/AspNetCore/Tag-Helpers/Form-elements#tag-attributes-3, the below should work but nothing happens.

<abp-date-picker asp-for="CreateTransaction.SendDate" data-minDate="05/23/2023" date-format="MM/DD/YYYY" />


4 Answer(s)
  • User Avatar
    0
    salih created
    Support Team .NET Developer
    <abp-date-picker asp-for="CreateTransaction.SendDate" min-date="new DateTime()" date-format="MM/DD/YYYY" />
    

    use it like this

  • User Avatar
    0
    trina.thompson created

    Thank you, that worked for me. Is there something extra that I need to do to get the current value to show when the page initially shows? It always just shows as blank.

  • User Avatar
    0
    salih created
    Support Team .NET Developer
    <abp-date-picker asp-for="CreateTransaction.SendDate" min-date="new DateTime()" date-format="MM/DD/YYYY" auto-update-input="true" />
    
  • User Avatar
    0
    trina.thompson created

    Perfect! Thanks again for your help!

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11