How To Retrieve Date Value From Database Using C#.net And Set In Html5 Input Type 'date'?
I want to retrieve date from database and set into HTML5 input type 'date'. I have two HTML5 date fields with IDs 'CourseStartDate' and 'CourseEndDate', and using the following cod
Solution 1:
You should try to convert the date time into specific format accepted by HTML5 control.
CourseStartDate.Text = DateTime.UtcNow.ToString("yyyy-MM-dd");
Hope this will help.
Post a Comment for "How To Retrieve Date Value From Database Using C#.net And Set In Html5 Input Type 'date'?"