Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/08/2008, 12:58
Avatar de a83
a83
 
Fecha de Ingreso: noviembre-2005
Ubicación: Santiago de chile
Mensajes: 637
Antigüedad: 19 años, 2 meses
Puntos: 1
Respuesta: tengo probleas al guardar el compo fecha en la BDD

Código PHP:
//Javascript name: My Date Time Picker
function FormatDate(pDate)
{
    if (
this.Format.toUpperCase()=="DDMMYYYY")
        return (
pDate+DateSeparator+(this.Month+1)+DateSeparator+this.Year);
    else if (
this.Format.toUpperCase()=="DDMMMYYYY")
        return (
pDate+DateSeparator+this.GetMonthName(false)+DateSeparator+this.Year);
    else if (
this.Format.toUpperCase()=="MMDDYYYY")
        return ((
this.Month+1)+DateSeparator+pDate+DateSeparator+this.Year);
    else if (
this.Format.toUpperCase()=="MMMDDYYYY")
        return (
this.GetMonthName(false)+DateSeparator+pDate+DateSeparator+this.Year);            
}
Calendar.prototype.FormatDate=FormatDate