I have to make an if function with comparaison of two Date : The First Date is Time. The second Date is a date comes from a fixed date.
My Code :
if (Time == contractNSQ100.Expiry.AddHours(-57).AddMinutes(59)) { True } else { False }
I have test my format with a :
Debug ("contractNSQ100.Expiry.AddHours(-57).AddMinutes(59) :" + contractNSQ100.Expiry.AddHours(-57).AddMinutes(59));
// Return : MM/dd/yyyy hh:mm:ss tt
I have almost test my Time format with a Debug method, this return me the same format.
But My If statement return me always False.
Do someone have an idea of why the test if (Time == contractNSQ100.Expiry.AddHours(-57).AddMinutes(59)) is always False ?
Thanks in advance !
Aucun commentaire:
Enregistrer un commentaire