By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

how to convert date formate dd/mm/yyyy to yyyy-mm-dd using masktextbox in

P: 1
i am write this code.. but error is occurs.

result = Date.ParseExact(txtPurchaseDate.Text.ToString, "yyyyMMddHHmmss", System.Globalization.CultureInfo.InvariantCulture) )

error is:-String was not recognized as a valid DateTime.
plz freds help me for solving this error
Mar 11 '13 #1
Share this Question
Share on Google+
1 Reply

P: 5
result= dateandtime.tostring ("dd/mm/yy")
Jun 14 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.