Hello,
I got a problem, I can save my data to access database and in the access database field I set it to date/time.
But problem is when I get the value out from the database.. the format is always month/day/year hour:minutes:seconds
example today:
5/2/2011 12:00:00
How to get the value into listview becoming May/2/2011 without the hour
Here's my code to get it from database
ListView1.Items(i).SubItems.Add(dt.Rows(i)(14).ToString)
The second problem is..
When I would like to edit, how can the datetimepicker get the listview value ?
Here is the code when I click edit button, the datetimepicker1 will get the listview1 date.
Here my code:
DateTimePicker1.Value = ListView1.SelectedItems(0).SubItems(14).Text
Anyone can help me please?
Thanks
info: using access 2003 (.mdb) the Date of Birth field has been set into Date/Time.