Guest User

Untitled

a guest
Apr 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <span>Horario de incio</span>
  2. @Html.DropDownListFor(m => m.HorarioInicial, Model.HorariosDisponiveisCadastro.Where(h => h <= new DateTime(1900, 01, 01, 12, 00, 00))
  3. .Select(s => new SelectListItem() { Value = s.ToString("HH:mm"), Text = s.ToString("HH:mm") }), new { @class = "form-control", onchange = "changeHoraFim(this);" })
  4.  
  5. <br />
  6. <span>Horario de fim</span>
  7. @Html.DropDownListFor(m => m.HorarioFinal, Model.HorariosDisponiveisCadastro.Where(a => a > Convert.ToDateTime(Model.HorarioInicial))
  8. .Select(s => new SelectListItem() { Value = s.ToString("HH:mm"), Text = s.ToString("HH:mm") }), new { @class = "form-control" })
Add Comment
Please, Sign In to add comment