Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# equivalent of VFP Date manipulation
Message
From
06/08/2003 21:28:24
Czarina Joyce Villanueva
Innovision Systems International
Manila, Philippines
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
C# equivalent of VFP Date manipulation
Miscellaneous
Thread ID:
00817537
Message ID:
00817537
Views:
54
Folks!

In VFP:
dToday = Date()
dGiven = {10/10/2002}
dDays = dGiven-dToday
In C#:
DateTime dToday = DateTime.Today;
DateTime dGiven = Convert.ToDateTime("10/10/2002");
int nDays = Convert.Int32(dToday-dGiven);
C# gives me error.

Correction please...
Next
Reply
Map
View

Click here to load this message in the networking platform