0
I’m a logical problem in my application. Guys, here’s the thing, in the project module of my system there is a deadline for delivery of the project. I need to know the following.
If today’s day is 1 week (7 Days) before the deadline, mandoamarelo to status column(These colors have already been implemented only lack the logic rsrsr)
If today is 2 Weeks (14 Days) before the deadline, send Green to status column.
If blown I send red
so far I have only checked whether this burst or not with a basic logic
variable $recebeData = Final date of the project
variable $diaHoje --'
<?php
            $recebeData = date_converter($date);
            $diaHoje = date('Y-m-d');
            if(strtotime($recebeData) >= strtotime($diaHoje)){
                }
                  jogo verde no status
        else {
               jogo vermelho no status
}
        ?>
Help me to play yellow if you miss 7 days before deadline and green if you miss 14 days before!