Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime fields
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
DateTime fields
Miscellaneous
Thread ID:
00822047
Message ID:
00822047
Views:
38
I am reading in Visual FoxPro data into a DataSet using the VFP OLEDB driver.

I am trying to read in a VFP DateTime field into a C# DateTime variable. When I use the following:
string strDateTime = DRow["tstart"].ToString();
DateTime dt = DateTime.Parse(strDateTime);
It cuts off the time and only gives me the date, even though strDateTime has the time. It seems like it may be due to the time in strDateTime is 12 hour time, with an AM or PM at the end.

Any ideas?
Mike C.
-------
I keep trying to find a life of my own, apart from you.
DC Talk/Charlie Peacock, In the Light.
www.risensystems.com/ra/itlbegin.rm
Next
Reply
Map
View

Click here to load this message in the networking platform