CSharp examples for System:DateTime Format
Get DateTime as format of yyyy-MM-dd HH:mm:ss:fffffff
using System.Globalization; using System.Text.RegularExpressions; using System.Web; using System.Linq; using System.Collections.Generic; using System;//from www . j ava2 s. co m public class Main{ public static string GetDateTimeF() { return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fffffff"); } }