view 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
line wrap: on
line source

@model DateTime?
<script type="text/javascript">
    $(document).ready(function () {
        $("#@ViewData.TemplateInfo.GetFullHtmlFieldId(string.Empty)").datepicker({ dateFormat: 'dd-mm-yy' });
    });
</script>
@Html.TextBox(string.Empty, (Model.HasValue ? Model.Value.ToShortDateString() : string.Empty))