This topic is locked
[SOLVED]

 date field type empty

7/30/2019 2:04:56 PM
ASPRunner.NET General questions
O
Onofre author

Good afternoon
How to make a date field type empty?
In my code below I need to make an update, write even with [dt_real] blank.
Can you help me
Thank you
if (values["dt_prevista"] < values["dt_inicio"])

{

message = "A Data Prevista não pode ser menor que a Data de Início";

return false;

}
else if (values["dt_real"] = null)

{

return true;

}
else if (values["dt_real"] < values["dt_prevista"])

{

message = "A Data Realizada não pode ser menor que a Data Prevista";

return false;

}
else

{

return true;

}

O
Onofre author 7/30/2019

OK

It worked

Thank you very much
From:

Support

Sent:

7/30/2019 3:12:20 PM
Junior,
see the difference?

------------------------

else if (values["dt_real"] = null)

------------------------

else if (values["dt_real"] == null)