Datetime currentTime = DateTime.Now;
string currentTimeAsString = currentTime.ToString("yyyy
-MM-dd HH:mm:ss.fff");
There is no formatting like that for dates in MS SQL Server. There is a limited one which is this:
http://www.blackwasp.co.uk/SQLDateTimeFormats.aspxIf this does not answer your question, please let me know what you would like to do exactly.