To String Long - CSharp System

CSharp examples for System:String Convert

Description

To String Long

Demo Code


using System.Web;
using System.Linq;
using System.Collections.Generic;
using System;/* w ww .  j av  a 2s  . co  m*/

public class Main{
        public static string ToStringLong(this DateTimeOffset dt) {
            return dt.ToString("dddd, dd MMMM yyyy HH:mm"); // Saturday, 21 July 2007 14:58
        }
}

Related Tutorials