Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

C# DateTime insert to DateTime in Access DB

Posted on 2009-07-08
3
1,343 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
ID: 24803916
What is the column type in your access database, and how are you [attempting to] insert a DateTime?
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 24804080
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
ID: 24804814
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

856 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