Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/DateTime.cshtml @ 150:19bab30521da
Pasando DateTime a un EditorTemplates
author | Nelo@Guinea.neluz.int |
---|---|
date | Tue, 02 Aug 2011 23:24:19 -0300 |
parents | |
children | ea85bd893247 |
comparison
equal
deleted
inserted
replaced
149:157492228830 | 150:19bab30521da |
---|---|
1 @model DateTime? | |
2 <script type="text/javascript"> | |
3 $(document).ready(function () { | |
4 $("#@ViewData.TemplateInfo.GetFullHtmlFieldId(string.Empty)").datepicker({ dateFormat: 'dd-mm-yy' }); | |
5 }); | |
6 </script> | |
7 @Html.TextBox(string.Empty, (Model.HasValue ? Model.Value.ToShortDateString() : string.Empty)) |