-
December 25th, 2020, 04:40 AM
#1
Storing and retrieving dates from MS Access using C#
Hello,
I am facing difficulty in storing date in MS Access using C# code. I have tried to save the DateTime object into the database. The column in the database was also of DateTime datatype. but I could not save the date. It gave me syntax error.
Then I tried to save the date as a String. But this time the date got saved in the database as some decimal. Plz help me in this regard. How to save the date in MS Access.
Thanking you,
-
December 25th, 2020, 11:03 AM
#2
Re: Storing and retrieving dates from MS Access using C#
Originally Posted by quincydur1998
Hello,
I am facing difficulty in storing date in MS Access using C# code. I have tried to save the DateTime object into the database. The column in the database was also of DateTime datatype. but I could not save the date. It gave me syntax error.
Then I tried to save the date as a String. But this time the date got saved in the database as some decimal. Plz help me in this regard. How to save the date in MS Access.
Thanking you,
Please, show us how you tried to do it.
Victor Nijegorodov
-
December 28th, 2020, 02:19 PM
#3
Re: Storing and retrieving dates from MS Access using C#
What error do you have, any screenshots?
-
January 31st, 2021, 04:21 PM
#4
Re: Storing and retrieving dates from MS Access using C#
Originally Posted by Baileybob
What error do you have, any screenshots?
No screenshots please, just include the code snippet and the error.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|