Set date datatypes in model.

This commit is contained in:
2019-05-19 21:02:57 +01:00
parent 4e3558e045
commit 0cc03e93f1
5 changed files with 8 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ namespace Cicm.Database.Models
[Required]
public MachineType Type { get; set; }
[DisplayFormat(DataFormatString = "{0:d}")]
[DataType(DataType.Date)]
public DateTime? Introduced { get; set; }
public int? FamilyId { get; set; }
[StringLength(50)]