| | |
DatePicker Problem
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2008
Posts: 255
Reputation:
Solved Threads: 37
0
#3 Nov 2nd, 2009
try and use something like -
Hope this helps...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Text1.Text = dtPicker1,Value Text1.Text = Format(Text1.Text, "dd,mm,yy")
Hope this helps...
Please mark questions as answered when done.
Be the ONE!!!
Be the ONE!!!
0
#4 Nov 2nd, 2009
some little change
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Text1.Text = dtPicker1.ValueText1.Text = Format(Text1.Text, "dd,mm,yy")
I like sword. Attack or Defense.
0
#5 Nov 2nd, 2009
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Text1.Text = dtPicker1.Value Text1.Text = Format(Text1.Text, "dd,mm,yy")
Last edited by abu taher; Nov 2nd, 2009 at 10:57 pm.
I like sword. Attack or Defense.
•
•
Join Date: Jan 2008
Posts: 255
Reputation:
Solved Threads: 37
1
#6 Nov 3rd, 2009
Must have been the wine.... comma in place of point. LOL
Some more dtPicker help for you all -
Hope this clears some questions.
Some more dtPicker help for you all -
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub DTPicker1_Click() Text1.Text = DTPicker1.Value 'To get the date Text2.Text = DTPicker1.Day 'To get the Day Text3.Text = DTPicker1.Month 'To get the Month Text4.Text = DTPicker1.Year ' To get the Year Text5.Text = DTPicker1.DayOfWeek ' To get the Day of the Week Text6.Text = Format(DTPicker1.Value, "DD-MM-YYYY", vbSunday, vbFirstFullWeek) 'To set the date format as required Text7.Text = DateAdd("d", 10, "01/02/2001") ' To add 10 days to the given date Text8.Text = DateAdd("m", 10, "01/02/2001") 'To add 10 months to the given date Text9.Text = DateAdd("yyyy", 10, "01/02/2001") 'To add 10 years to the given date Text10.Text = DateDiff("d", "01/05/2001", "01/30/2001") 'To find the number of days between any two dates End Sub
Hope this clears some questions.
Please mark questions as answered when done.
Be the ONE!!!
Be the ONE!!!
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: A little help on a card game is needed
- Next Thread: code need
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






