Hi
Is it possible when the calendar pops up for it to select the current date eventhough the input field is blank?
Is not, perhaps a current date button in the calendar as a suggestion for a future release??
Hi
Is it possible when the calendar pops up for it to select the current date eventhough the input field is blank?
Is not, perhaps a current date button in the calendar as a suggestion for a future release??
Hey @kirank,
Most probably your DatePicker is bound to a property, i.e. @bind-Value="someObject.someDate" - you can set DateTime.Now to this property. There is also a footer where you can place anything including button to set the current date:
Thank you @enchev
I did know about the 1st suggestion but in some situations, the date needs to be blank so the user makes a conscious decision. The 2nd suggestion you made is perfect for what I need. Just didn't realise the footer.
It would be good if in the future if this was a property on the date control, however, I can work with a button in the footer.