Before Now DateTime - CSharp System

CSharp examples for System:DateTime Calculate

Description

Before Now DateTime

Demo Code


using System;// w w w  .  j  a  v a  2 s . c o m

public class Main{
        public static DateTime BeforeNow(this TimeSpan span)
        {
            return DateTime.Now.Add(span);
        }
}

Related Tutorials