DateTime To My Sql Format - CSharp System

CSharp examples for System:DateTime Format

Description

DateTime To My Sql Format

Demo Code


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

Related Tutorials