?
Solved

Need to use Ole to get a date from Access

Posted on 2006-05-31
1
Medium Priority
?
204 Views
Last Modified: 2010-04-16
Hi,

What's the best way to read a Date/Time column's value into a DateTime object, via an
OleDbDataReader?

Thanks,
Bob
0
Comment
Question by:ba272
1 Comment
 
LVL 13

Accepted Solution

by:
devsolns earned 2000 total points
ID: 16804578
DateTime dt = reader.GetDateTime(column);
or
DateTime dt = (DateTime)reader[column];
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

569 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