Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Date and month switched

$
0
0
Hi,
The field is a string that is like
04/06/2013 07:18:47 AM

and then I further convert it to be a date, like
cmd.Parameters.Add("@join_dt", SqlDbType.DateTime).Value = Convert.ToDateTime(tb_join_dt.Text.Trim());


while further it is stored in the column with date and month switched, like the following. Why?

Many Thanks & Best Regards, Hua Min


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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