CSharp examples for System:DateTime Format
DateTime To My Sql Format
using System;/*from w w w .ja v a2 s.com*/ public class Main{ public static string UtilToMySqlFormat(this DateTime dt) { return dt.ToString("yyyy-MM-dd HH:mm:ss"); } }