i need to format date like \"2010-04-21 11:35:22.440\". can anyone help me?
the problem is i am seeing either 2009-06-15T13:45:30.0900000 or 2008-03-09 16:05:07Z but not
Use the format "yyyy-MM-dd hh:mm:ss.fff" with the ToString of the date variable.
"yyyy-MM-dd hh:mm:ss.fff"
e.g:
Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"));