Get Readable Date - CSharp System

CSharp examples for System:DateTime Format

Description

Get Readable Date

Demo Code


using System.Web;
using System.Text.RegularExpressions;
using System.Linq;
using System.Globalization;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System;/* w  w w.  ja  v a2s  .c o m*/

public class Main{
        public static string GetReadableDate(DateTime date)
        {
            return string.Format("{0:dddd, d MMMM yyyy}", date);
        }
}

Related Tutorials