I need to compare the final date of a service contract to put in a report that will have 4 status types:
1- contrato em vigor (Verde)
2- contrato próximo ao vencimento (Amarelo)
3- contrato vencido (Vermelho)
4- contrato com prazo indeterminado (Azul)
I'm getting 2 values for the user, dt_inicio
and dt_final
, I need the dt_final
to be compared with (new Date) dt_atual
"If dt_final is> dt_atual then the contract is expired." | "If the dt_final is