Date To Date String - CSharp System

CSharp examples for System:DateTime Format

Description

Date To Date String

Demo Code


using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from w  ww. j  a v  a2 s  .c  o m*/

public class Main{
        public static string DateToDateString(DateTime dateTime)
        {
            return dateTime.ToString("d");
        }
}

Related Tutorials