16,011,849 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by kingcoder0110 (Top 4 by date)
kingcoder0110
24-Nov-12 3:09am
View
Thank you very much for trying to help me to solve my problem. You said it that "The actual Problem is the string 30-07-2012". But didnt you check my codes where I have changed it back from string to date? Please check following code
Private Sub cmbisrbdt_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbisrbdt.SelectedIndexChanged
Dim bdsv As String = cmbisrbdt.SelectedItem
Dim bdDate As Date
bdDate = DateTime.Parse(bdsv, Globalization.CultureInfo.CreateSpecificCulture("en-CA"))
TextBox1.Text = bdDate
End Sub
Private Sub cmbisredt_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbisredt.SelectedIndexChanged
Dim edsv As String = cmbisredt.SelectedItem
Dim edDate As Date
edDate = DateTime.Parse(edsv, Globalization.CultureInfo.CreateSpecificCulture("en-CA"))
TextBox2.Text = edDate
End Sub
First of all I have collected string date (DD-MM-YYYY) from combo boxes & converted it back as date (MM-DD-YYYY) & got that converted result in text boxes & used those text boxes as parameter. So what does it make problem?
kingcoder0110
6-Oct-12 13:59pm
View
Thanks a lot. It works.
kingcoder0110
6-Oct-12 12:13pm
View
Can you explain it to me please?
kingcoder0110
6-Oct-12 12:13pm
View
Would you please explain it to me? I didnt understand your answer properly.