Sc_get_wizard_step hangs with no error (when using WEEKDAY) [SOLVED]

hi there.

i’m using a wizard form to get some info from users. the user have to choose a date on a monday. so i use to test. norhing happend the app hangs and no error in debug. any suggestions?

OnValidate

if (sc_get_wizard_step() == 5) {

if (WEEKDAY("{ev_datum_start}") == 0)

{

sc_error_message("Maandag");

}
else
	{
	
	sc_error_message("Andere dag");

	}

}

sort it out. bit of a mistake to use WEEKDAY in php use strotime

for everyone who needs it.

//datum omzetten
$datumb = “{ev_datum_start}”;
$datume = “{ev_datum_eind}”;

//haal de dag op
$dags = date(“N”, strtotime($datumb));
$dage = date(“N”, strtotime($datume));

if (sc_get_wizard_step() == 5)
{

if ($dags == 1) 
	{
	echo "test";
	}
else
	{
	
	sc_error_message("De startdatum dient op een MAANDAG te beginnen<br>Kies een andere datum");

	}

if ($dage == 5)
   {
   }
else
	{
	sc_error_message("De einddatum dient op een VRIJDAG te eindigen<br>Kies een andere datum");
	
	}

		}