Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. [Display(Name = "Data de Nascimento")]
  2. //[DataType(DataType.Date)]
  3. //[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")]
  4. [Required(AllowEmptyStrings = false, ErrorMessage = "Por favor, informe sua data de nascimento.")]
  5. public System.DateTime dtNascimento { get; set; }
  6.  
  7. $("#dtNascimentoFuncMeusDados").removeAttr("data-val-date");
  8. $('#dtNascimentoFuncMeusDados').datepicker({
  9. weekStart: 0,
  10. maxViewMode: 2,
  11. language: "pt-BR",
  12. multidate: false,
  13. autoclose: true,
  14. todayHighlight: true
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement