ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
DatePicker is giving time as 12:00:00 AM
Title:
B
I
{code}
?
Hi! I am using `@Html.Awe().DatePickerFor(o => o.Date)`, where Date field is of datatype DateTime. But is passing value to controller which contains only date and sending time as 12:00:00 AM.But I want current time along with date. How can I do this??
Save Changes
Cancel
Sam Mosaic
asked at 22 Dec 2019
Answers
B
I
{code}
?
The datepicker is only for picking the date, it has no time functionality, you can use the timepicker with a separate viewmodel property, and combine the values for the time and date in the controller, you can see the timepicker here: https://demo.aspnetawesome.com/DatePickerDemo#TimePicker https://demo.aspnetawesome.com/AjaxRadioListDemo#TimePicker
Save Changes
Cancel
Omu
answered at 22 Dec 2019
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK