DateTime To ISO Format - CSharp System

CSharp examples for System:DateTime Format

Description

DateTime To ISO Format

Demo Code


using System;//from   w ww.j  av a  2  s. c o  m

public class Main{
        public static string UtilToISOFormat(this DateTime dt)
        {
            return dt.ToString("yyyy-MM-ddTHH:mm:ss.fffzzzz");
        }
}

Related Tutorials