Monday 25 August 2014

date format in C#

 DateTime dtDateValue = Convert.ToDateTime(dt.Rows[iRowCount]["date_dt"]);
 string strDateValue = dtDateValue.ToString("yyyy-MM-dd HH:mm:ss");

No comments:

Post a Comment