data type datetime format attribute code example
Example 1: asp.net data annotations Datetime
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
Example 2: start date time picker from day to year in html
$('#datetimepicker').datetimepicker({ format: 'yyyy-mm-dd hh:ii'});