0

I finding solution for may problem.

Is there something prepared for coder, It would solve to the award date of birth. For example, I have a small table with a calendar or a few dropdownlists (day, month, year).

Or I will must implement own.

Thanks for reply PMilan

P.S.: I found this, but I would like find "kosher" solution.

Community
  • 1
  • 1
P.Milan
  • 73
  • 1
  • 14

1 Answers1

0

There isn't anything available in MVC that can act as a birthday picker right out of the box.

However, I would opt for using something like the JQuery Date Picker, rather than trying to write your own - there a literally thousands of implementations of the JQuery date picker out there.

If you're not looking to use any third party UI libraries, or you're trying to stick to basic web controls, you could do one of the following :

  • Create a DateTime variable in your model, and decorate it as shown on this question.

  • Use the cascading drop down approach. The user first selects a year, then they select a month, and then they select the day. You'll need to represent each of these with a separate variable in your model.

Community
  • 1
  • 1
X3074861X
  • 3,709
  • 5
  • 32
  • 45