943,971 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Sep 1st, 2005
0

date problem

Expand Post »
hi,
my problem is i want to display date using combo box. user will select da date and it will be save to db. da date will be separate to day, month and year. the main prob is i don't know how to aviod this happen 31/2/2005, don't no how 2 xplain....

anyone can help me?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
LadyFinger is offline Offline
4 posts
since Aug 2005
Sep 1st, 2005
0

Re: date problem

Just setup an input mask or set the field type to a DATE field.

If you mean three sep boxes then thats even easier just say:

Day number must be greater then 0 but less then or = 31 but account for months with 30 days and 28 days etc.

Month > 0 <= 12

Year >= 2005 ??


Not sure what your trying to do exactly.. but its easy to link this up..

You could evn use the CALENDAR option.. popup a calendar let them select a date and populate fields..

or you can fgo the route of... CHOOSE A MONTH

Base don month you get days.... then CHOOSE a Year...

etc etc
Reputation Points: 12
Solved Threads: 19
Posting Pro
techniner is offline Offline
521 posts
since May 2005
Sep 1st, 2005
0

Re: date problem

that was gd idea, by pop up the calendar. but how can i link it to a textbox to display the date select by the user? should i use datepicker ? xtually wat is da fn of datepicker? thanks 4 your concern.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
LadyFinger is offline Offline
4 posts
since Aug 2005
Reputation Points: 12
Solved Threads: 19
Posting Pro
techniner is offline Offline
521 posts
since May 2005
Sep 22nd, 2005
0

Re: date problem

Use a calendar for this problem
Reputation Points: 10
Solved Threads: 0
Newbie Poster
roof is offline Offline
1 posts
since Sep 2005
Sep 24th, 2005
0

Re: date problem

the dtpicker seems to work best for most of my applications.
Reputation Points: 20
Solved Threads: 5
Junior Poster
jwshepherd is offline Offline
123 posts
since Jun 2005
Sep 27th, 2005
0

Re: date problem

Quote originally posted by jwshepherd ...
the dtpicker seems to work best for most of my applications.
I'll second that.
Reputation Points: 16
Solved Threads: 1
Posting Whiz in Training
mnemtsas is offline Offline
200 posts
since Jul 2004
Mar 31st, 2008
0

Re: date problem

Can some one help me with the following. Any help will be appriciated.

Platfprm : Visual Studio 2005, Visual Basic

Situation : I have datepicker created in JAVA and call in Visual Basic .net program.

User Pick date and populate to text box.

And click save to SQL 2005 database as date fileld.

My problem is that how to convert date picker date(which is in text box) and save to database

Pls. give me code sample.

NK
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nasir1149 is offline Offline
3 posts
since Jan 2008
Mar 31st, 2008
0

Re: date problem

Click to Expand / Collapse  Quote originally posted by nasir1149 ...

My problem is that how to convert date picker date(which is in text box) and save to database
use Convert.DateTime(Textbox1.text)

or

CDate(Textbox1.text)
Reputation Points: 30
Solved Threads: 49
Posting Pro
choudhuryshouvi is offline Offline
553 posts
since May 2007
Mar 31st, 2008
0

Re: date problem

Click to Expand / Collapse  Quote originally posted by nasir1149 ...
Can some one help me with the following. Any help will be appriciated.

Platfprm : Visual Studio 2005, Visual Basic

...........
..................
........................

NK
Please do not hijack others threads .
Start a thread of your own instead for fresh discussions.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007

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.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Write concurrently to log file
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Edit records





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC