Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. [Required(ErrorMessage = "*Ingrese una fecha.")]
  2. [DataType(DataType.Date)]
  3. [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
  4. [Display(Name ="FECHA")]
  5. public DateTime Fecha { get; set; }
  6.  
  7. @Html.LabelFor(m => m.Entrada.Fecha, new { @class = "control-label" })
  8. @Html.TextBoxFor(m => m.Entrada.Fecha, "{0:dd/MM/yyyy}", new { @class = "form-control datepicker" })
  9. @Html.ValidationMessageFor(m => m.Entrada.InventarioId, "", new { @class = "text-danger" })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement