To Iso Date format - CSharp System

CSharp examples for System:DateTime Format

Description

To Iso Date format

Demo Code


using System;//from w  ww .  j a v  a2 s  .  c  o  m

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

Related Tutorials