datetime - how to validate dates in asp.net -
I am doing this issue since "ever"
I live in that country Where we use the British date formats Dd / mm / yyyy but every time I try to do a query for the SQL DB hosted in a USS server, until I receive 100% for errors
< P> convert toDateTime ("2007-17-5") produces an error where Convert.ToDateTime ("2007-5-17") also cause an error Does it . Many verification methods, several T-SQL queries and several other ways I partially solved and solved most of my projects, however, I want to know that any wires changed by that date The universal way to do that will not cause any problem?
Or any good resource in relation to working with date?
----------- Editing ... -----------------
Even here If I format the date correctly, then the query from SQL Server does not produce any value even though I'm sure .. for example .. if I 1/200/200 9 (1 January 200) 9) am looking for dates between 1/200 9 (1 May 2009), no records are returned. And when I try to change the date in SQL Server's query builder, I get an error by saying that this is not a valid date I'm writing ...
< Div class = "post-text" itemprop = "text">
2007-5-17 is not a valid international date (ISO 8601), 2007-05-17 Is. If you are going to use the international CCYY-MM-DD format, you should include the main 0 s
Comments
Post a Comment