CSharp examples for System:DateTime Calculate
A DateTime extension method that query if '@this' is in the future.
// Copyright (c) 2015 ZZZ Projects. All rights reserved using System;// w ww .j ava 2s .c om public class Main{ /// <summary> /// A DateTime extension method that query if '@this' is in the future. /// </summary> /// <param name="this">The @this to act on.</param> /// <returns>true if the value is in the future, false if not.</returns> public static bool IsFuture(this DateTime @this) { return @this > DateTime.Now; } }