DateTime To International Format Short - CSharp System

CSharp examples for System:DateTime Format

Description

DateTime To International Format Short

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from w w w. j a  va 2 s. co  m*/

public class Main{
        public static string ToInternationalFormatShort(this DateTime d)
        {
            return d.ToString("yyyy-MM-dd");
        }
}

Related Tutorials