ASKER
ASKER
ASKER
ASKER
DateTime TakenDate = DateTime.Parse(info.DateTime);
double day_count = (DateTime.Now - TakenDate).TotalDays;
ASKER
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
DateTime TakenDate = info.DateTime;
TimeSpan diff = DateTime.Now - TakenDate; < error on Takendate
int date_count = diff.Days;
if you get error on DateTime TakenDate = info.DateTime;
then use following
DateTime TakenDate = DateTime.Parse( info.DateTime);