In my previous post
I showed how you could do a time picker component in Blazor. This time I will
extend this so you could select date and time with a single component.
The problem
Just like time, there is no built-in component in Blazor for selecting date and
time and the same time. There is however support for selecting date, and I am
using that in the solution below.
The solution
My solution is this little Blazor component below.
Date time picker component
Note that this component is dependent on the TimePickerComponent I showed in
my previous post.
Here is some test code you could use to test the component:
Test code
With the default controls it looks like this:
And this is with the native controls:
Summary
Yet again this is a basic component. But I do think it is useful. I have even
published a demo project in a GitHub
repository.