A
A
Andrey2019-10-01 10:33:18
JavaScript
Andrey, 2019-10-01 10:33:18

As in ASP. NET Core to add Datetimepicker?

Good afternoon!

Dear experts! Help a beginner, tell me how to add a datetimepicker to the page?
There seems to be a lot of information everywhere, but starting to follow the manual, I constantly come across that something is missing in my project. My ASP.NET Core 2.1 MVC project

And so I found a suitable manual, https://caseyobrien.co/code/datetimepicker-dot-net... I did everything according to it, but I still didn’t understand what was tedious to write in the view, to have a choice of dates. :(

I need to pass the date for which the report will be collected to the controller. In WPF, everything was clear and understandable.
In ASP.NET, I have been marking time in one place for 3 days - and nothing :(

Thank you very much in advance! If you need code, tell me I did everything according to the manual, my View is empty.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-10-23
@andrey71

It turned out to be done as in this example.
https://www.aspsnippets.com/Articles/Implement-Bo...
The date is passed to the controller, but for some reason the warning about an empty date does not work and it is not possible to localize the calendar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question