Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Date Issue format

$
0
0

Hello guys and gurus. I’m looking for solution about this date issue. I have a calendar extender to a textbox that has a format of dd/MM/yyyy. When I save it to sql server table, it identifies as MM/dd/yyyy. If the date shown in the textbox is “11/03/2013” stands for (March 11, 2013 in format of dd/MM/yyyy), sql identifies and saves it as “November 3, 2013”. What is the best solution for this? I am looking some solution on how to reconvert it again to MM/dd/yyyy before I save to table but it’s not working. I tried:

drow["qa_datefrom"] = Convert.ToDateTime(txtAuditDateFrom.Text).ToString("MM/dd/yyyy");

But it is still not converting. Any suggestions would be really appreciated. Thanks in advance. Jim.


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>