I want to show date in a FORM, but when i running in browser i get this value
/Date(1087789832000)/
in my model I make the datatype of the date is:
public DateTime? DueDate { get; set; }
in database I use SQLServer , Datatype is DateTime Too.
i already trying to use convert it in My controller like this, but it's not work :
DueDate = item.DueDate.HasValue ? item.DueDate.Value.ToString("MM/dd/yyyy") : "",
and i get error :
Cannot implicity convert type 'string' to 'System.DateTime'
anybody can help me to how fix this ?? i want convert it in MM/dd/yyyy