Solved

C# DateTime insert to DateTime in Access DB

Posted on 2009-07-08
3
1,338 Views
Last Modified: 2012-05-07
I have problem sto insert a DateTime from C# into a Access Table. What format am I supposed to have when inserting it? Are there any location dependent issues?
0
Comment
Question by:mdoland
3 Comments
 
LVL 33

Expert Comment

by:Todd Gerbert
Comment Utility
What is the column type in your access database, and how are you [attempting to] insert a DateTime?
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
Usually, sending the date in the yyyy/MM/dd HH:mm:ss format is accepted in all cultures
0
 
LVL 49

Expert Comment

by:Gustav Brock
Comment Utility
A DateTime has no format but if you wish to create an SQL string for the purpose you should use the format mentioned by emoreau.

/gustav
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now