Short Date Value - CSharp System

CSharp examples for System:DateTime Calculate

Description

Short Date Value

Demo Code


using System.Runtime.CompilerServices;
using System;/* w  w  w.j a  va2 s.com*/

public class Main{
        public static DateTime ShortDateValue(this DateTime dateTime)
        {
            return new DateTime(dateTime.Year, dateTime.Month, dateTime.Day);
        }
}

Related Tutorials