English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have three combo boxes to let user enter date(dd/mm/yyyy).how can i combine them into a date?
(using visual basic)

2007-09-24 18:25:03 · 2 answers · asked by jolin 1 in Computers & Internet Programming & Design

2 answers

I did a search on ' "Visual Basic" "Convert string to date" ' http://www.google.com/search?hl=en&lr=&as_qdr=all&q=+%22Visual+Basic%22+%22Convert+string+to+date%22

' "Visual Basic" "Converting string to date" '
http://www.google.com/search?hl=en&lr=&as_qdr=all&q=+%22Visual+Basic%22+%22Converting+string+to+date%22

TMD

2007-09-24 18:33:15 · answer #1 · answered by The Mad Doctor ™ 3 · 0 0

Hi,
Try the following
-----------------------------------------------------------
Private Sub Command1_Click()
Dim A As String, B As String, C As String, D As Date
A = "25"
B = "09"
C = "2007"
D = A & "/" & B & "/" & C
Debug.Print Month(D)
End Sub
------------------------------------------------------------------------------

2007-09-25 05:16:50 · answer #2 · answered by iqbal 4 · 0 0

fedest.com, questions and answers