problem getting short time from an MS access database
Expand Post »
Hi
Every one.
I have an MS access database table in which i have stored a data type of date/time in short time format.
When i access the table from c# and diplay it into a data grid view the column in short time format diplay as long time format
i.e, i have stored (10:10) in data base table but in c# it display like (16/06/2009.10:10:00 AM) in data gridview
how i can get the only short time from this table?
Please any one to help me.......
Re: problem getting short time from an MS access database
I think you might wana consider having something like this txtDate.Text = DateTime.Today.ToShortTimeString(); in ur code, its hard to tell coz u havent post any code to see where u might be going wrong
the code above will display in a text box "12:00 AM", u can also omit AM if u want to
Last edited by Traicey; Jun 19th, 2009 at 5:42 am.
Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.
This thread is more than three months old
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.