view Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/DateTime.cshtml @ 156:6e554de521aa

Estética de altnet hispano
author Nelo@Guinea.neluz.int
date Thu, 04 Aug 2011 18:44:57 -0300
parents 19bab30521da
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))