Closed andythomasdev closed 2 years ago
@stsrki Has this been looked into?
Not jet. Sorry, somehow it went under the radar. Adding on the backlog.
After a little investigation, it seems that seconds are not supported with input type="datetime-local"
https://stackoverflow.com/questions/58023438/cant-set-seconds-value-of-input-type-datetime-local-to-be-0
Why have your DateEdit component include a selection for seconds then? Is there no way to get this to work?
In an attempted workaround, I'm trying to use your InputMask component. It seems to have a bug where it is unable to distinguish between MM
for month and mm
for minute. When using this input, the minute section is treated as month, and I am unable to type in a value greater than 12.
Have you tried with DatePicker component?
No, I need to be able to enter a specific date and time down to the second. I would be fine with using the InputMask
component, but as I noted above, it appears to have a bug with the InputFormat not being able to distinguish between MM
for month and mm
for minutes.
Description When programmatically setting the
Date
attribute of theDateEdit
component to a specific value such asDateTime.Now
, the component ignores seconds, and only sets the date, hour, and minute.To Reproduce
DateEdit
component to a page.TValue="DateTime?"
InputMode="DateInputMode.DateTime"
Date="@DateTime.Now"
Expected behavior The field should be set with the exact value of
DateTime.Now
when the page is rendered, including seconds.Code
Screenshots