Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime fields
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
DateTime fields
Divers
Thread ID:
00822047
Message ID:
00822047
Vues:
39
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform