Standard date and time format strings
DateTime now = DateTime.Now; string dateString = now.ToString("o");