DateTime To International Format - CSharp System

CSharp examples for System:DateTime Format

Description

DateTime To International Format

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from  ww  w.  j  a v  a  2s.com

public class Main{
        public static string ToInternationalFormat(this DateTime d)
        {
            return d.ToString("yyyy-MM-dd hh:mm:ss");
        }
}

Related Tutorials