I have this date, that I get from jquery
Wed Oct 30 2013 09:05:17 GMT-0800 (Hora estándar Pacífico (México))
that I get this function
A couple of options.
If you're OK with including jQueryUI: $("#vigencia_receta_11").val($.datepicker.formatDate('dd/M/yy', nd));
$("#vigencia_receta_11").val($.datepicker.formatDate('dd/M/yy', nd));
Otherwise, the jQuery dateFormat plugin does something similar: $("#vigencia_receta_11").val($.format.date(nd, 'dd/M/yy'));
$("#vigencia_receta_11").val($.format.date(nd, 'dd/M/yy'));