Hi friends,
I have a table in MS-Access "demo", in that i have column "Time_in" as DATE/TIME, and inserting the value by "Time()" function.
While browsing in access it is showing only time. But while displaying the same in Datagrid (WPF) it is showing time with date like this "30-Dec-1899 2:02:18 PM"
here date is wrong but time is right.
From that data i want to extract only time and display in datagrid....
Please guide me...
Thanks in advance...
Filtering time from Date/Time in MS-Access
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Sep 21, 2010, 8:32 PM EDT
Refer the below link
http://dotnetperls.com/datetime-1
With Regards,
Gomathi.P
kannan46 reputationPosted Sep 21, 2010, 8:38 PM EDT
I need the formatting in query itself.. So its easy to bind in datagrid. Any how i got the solution. There is one function "Format" is available to format Date/Time in access.
Select Format(Time_in,"hh:nn AM/PM") AS TIMEIN from demo
will return only time... refer the link below for more details
http://www.techonthenet.com/access/tables/format_date.php
Thanks again...