Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have the below line of code in VB

DateDiff(DateInterval.Day, dateupdated, Date.Today()) <> 0 )


I didn't find the DateDiff function in C#.

Can anybody help me out how to write this in C#

Thanks in Advance

What I have tried:

I have written
C#
(dateupdated-today).totaldays!=0

Is this correct? if it is correct then what about Dateinterval.day. How to use it.
Or suggest me the correct syntax
Posted
Updated 26-Sep-17 19:11pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900