data type datetime format code example
Example 1: input datetime
<input type="datetime-local">
Example 2: c# datetime format ymd
Use DateTime.Now.ToString("yyyy-MM-dd h:mm tt");
<input type="datetime-local">
Use DateTime.Now.ToString("yyyy-MM-dd h:mm tt");