CSharp examples for System:DateTime Format
DateTime To International Format
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"); } }