Ich habs jetzt mal so probiert und zwar habe ich das:
Code: Alles auswählen
$user_first_pc_from = strtotime ("$y_first_pc-$m_first_pc-$d_first_pc 00:00:00-0000");
Code: Alles auswählen
$check_first_pc_from_date = checkdate($m_first_pc,$d_first_pc,$y_first_pc);
if ( $check_first_pc_from_date = TRUE )
{
$date_first_pc_from_strlength = $d_first_pc-$m_first_pc-$y_first_pc;
if ( $date_first_pc_from_strlength <=strlen($lang['Submit_first_pc_date_format']) )
{
$user_first_pc_from = strtotime ("$y_first_pc-$m_first_pc-$d_first_pc 00:00:00-0000");
}
else
{
$error = TRUE;
$error_msg .= $lang['Wrong_first_pc_format'];
}
}
else
{
$user_first_pc_from = 999999;
}
Code: Alles auswählen
$lang['Submit_away_date_format'] = "d-m-Y";
Hoffe es hat jemand verstanden was ich meine und kann mir helfen das richtig hinzukriegen


Grüße Candy