Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <span>Horario de incio</span>
- @Html.DropDownListFor(m => m.HorarioInicial, Model.HorariosDisponiveisCadastro.Where(h => h <= new DateTime(1900, 01, 01, 12, 00, 00))
- .Select(s => new SelectListItem() { Value = s.ToString("HH:mm"), Text = s.ToString("HH:mm") }), new { @class = "form-control", onchange = "changeHoraFim(this);" })
- <br />
- <span>Horario de fim</span>
- @Html.DropDownListFor(m => m.HorarioFinal, Model.HorariosDisponiveisCadastro.Where(a => a > Convert.ToDateTime(Model.HorarioInicial))
- .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