How do you read date from excel and compare?

Hi,

It’s excel serial value. Can you try the following condition?

image

 fecha_doc=DateTime.FromOADate(CDbl(fecha_SBS)).ToString("yyyy.MM.dd")

Regards,

1 Like