![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2006
Posts: 9
Rep Power: 0
![]() |
help
hello everybody , i am doing a vb project and needs some help. i currently store the date and time details in access database. i want to retreive the time to a textbox. but when i retreive the time the date also show up. how do i limit to time only
thx. |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Dec 2005
Location: Philippines, where the seasons are: hot, and hotter
Posts: 72
Rep Power: 3
![]() |
Next time, don't put words like "help", "please...", and other words that don't specifically say anything.
What was the object you used to call your MS Access file?
__________________
"The most incomprehensible idea about the universe is that it is comprehensible" - Albert Einstein |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3
![]() |
show us some code so we can help.. i have posted something about MSAccess and dates before, you should also search the forums b4 posting..
what are you using ? oledbreader..? |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Apr 2006
Posts: 9
Rep Power: 0
![]() |
reply
what i mean is this. i want to extract the time from the date function. that is one question. the other one is when i extract a time from the database it shows wrong time,which is not stored in my database , could anyof you explain to me why?
thx |
|
|
|
|
|
#5 | |
|
Programmer
Join Date: Jul 2006
Location: using Earth.Africa.Egypt.Cairo;
Posts: 71
Rep Power: 3
![]() |
Quote:
|
|
|
|
|
|
|
#6 |
|
Programmer
Join Date: Dec 2005
Location: Philippines, where the seasons are: hot, and hotter
Posts: 72
Rep Power: 3
![]() |
We can take literally hundreds of guesses to your question if you don't have the codes posted
![]()
__________________
"The most incomprehensible idea about the universe is that it is comprehensible" - Albert Einstein |
|
|
|
|
|
#7 |
|
Hobbyist Programmer
|
here's one way to do it
vbnet Syntax (Toggle Plain Text)
so as you can see, i basically just handled it like a string and parsed out the part of it i wanted in each case. one button displays the full date and time another button displays time only, with seconds and the third button displays time only, without seconds I'm not going to code the whole program, I'll leave the retrieval of the datetime object from the MSAccess Database up to you, but here is how you can manipulate it once you've retrieved it to get the value you desire out of it. cheers :banana:
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|