To String Short - CSharp System

CSharp examples for System:String Convert

Description

To String Short

Demo Code


using System.Web;
using System.Linq;
using System.Collections.Generic;
using System;//from w w  w  . j  ava 2  s.  co  m

public class Main{
        public static string ToStringShort(this DateTimeOffset dt) {
            return dt.ToString("dddd, dd MMMM yyyy");   //Saturday, 21 July 2007
        }
}

Related Tutorials