Get DateTime as format of yyyy-MM-dd HH:mm:ss:fffffff - CSharp System

CSharp examples for System:DateTime Format

Description

Get DateTime as format of yyyy-MM-dd HH:mm:ss:fffffff

Demo Code


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");
            }
}

Related Tutorials