0
I found something similar here, but it’s still not what I want. I have the following code in php:
$data_t2 = date('dmY', strtotime($inicio_provas));
$data_t3 = date('dmY', strtotime("+120 days"));
if ($data_t2 < $data_t3) {
$data_libera = "Você não pode marcar a Prova";
}else{
$data_libera = "Vai rolar meu amigo";
}
Only what happens... It is checking whether it is larger or smaller only by day, example of two results:
"T2= 24102016" > "T3= 22022017" -> Go roll my friend
"T2= 13102016" > "T3 = 22022017" -> You cannot mark the Test
I don’t know, but I don’t understand why he’s just judging the day and not the full pro number...
You should use strotime in both variables.
– Mauro Alexandre
@Mauroalexandre I forgot to add, but I’m using the original code, I’ve already edited... but continues my doubt...
– Ursones
What is the value of $start_proofs ?
– Mauro Alexandre