Respuesta: Problemas con las fechas Intenta esto: despues del texbox donde capturas la fecha (por ejemplo con un date-picker) el la pone 12/12/2012 y necesitas guardarla 2012-12-12
// esto es html
<input type="text" id="txtfecapr" name="txtfecapr" size="50" maxlength="10" alt="esFecha|Fecha Aprobación|10" class="date-pick" value="<?php echo $F['crefecapr']; ?>" />
// COLOCA ESTO DESPUES DE CAPTURAR LA FECHA EN EL TEXTBOX POR EJEMPLO LO LLAME txtfecapr
// esto es javascript
<script language="JavaScript" type="text/javascript"> $("#txtfecapr").val(hoy()); </script></td>
// COLOCA ESTO ANTES DE ENVIAR A LA BD, recuerda es código php
<?PHP
$i= str_replace("/", "-", $txtfecapr);
setlocale(LC_TIME, 'es_ES');
$txtfecapr=strftime('%Y-%m-%d',strtotime($i));
LC_TIME;
?> |