DateTimeOffset Greater Than Or Equal Operator : DateTimeOffset Calculation « Date Time « C# / C Sharp

Home
C# / C Sharp
1.2D Graphics
2.Class Interface
3.Collections Data Structure
4.Components
5.Data Types
6.Database ADO.net
7.Date Time
8.Design Patterns
9.Development Class
10.Event
11.File Stream
12.Generics
13.GUI Windows Form
14.Internationalization I18N
15.Language Basics
16.LINQ
17.Network
18.Office
19.Reflection
20.Regular Expressions
21.Security
22.Services Event
23.Thread
24.Web Services
25.Windows
26.Windows Presentation Foundation
27.XML
28.XML LINQ
C# / C Sharp » Date Time » DateTimeOffset CalculationScreenshots 
DateTimeOffset Greater Than Or Equal Operator
DateTimeOffset Greater Than Or Equal Operator
  
using System;
using System.Globalization;
public class Test
{
   public static void Main()
   {

        DateTimeOffset date1 = new DateTimeOffset(20076314450new TimeSpan(-700));
        DateTimeOffset date2 = new DateTimeOffset(20076315450,new TimeSpan(-700));
        DateTimeOffset date3 = new DateTimeOffset(date1.DateTime, new TimeSpan(-600));
        DateTimeOffset date4 = date1;
        Console.WriteLine(date1 >= date2);        
        Console.WriteLine(date1 >= date3);        
        Console.WriteLine(date1 >= date4);        
   }
}

   
    
  
Related examples in the same category
1.Adds a specified time interval to a DateTimeOffset object.
2.Adds a specified number of whole and fractional days to the current DateTimeOffset object.
3.Add one week to the current date
4.Adds a specified number of whole and fractional hours to the current DateTimeOffset object.
5.Adds a specified number of months to the current DateTimeOffset object.
6.Adds a specified number of years to the DateTimeOffset object.
7.DateTimeOffset Greater Than OperatorDateTimeOffset Greater Than Operator
8.DateTimeOffset Inequality OperatorDateTimeOffset Inequality Operator
9.DateTimeOffset LessThan OperatorDateTimeOffset LessThan Operator
10.DateTimeOffset Less Than Or Equal OperatorDateTimeOffset Less Than Or Equal Operator
11.Subtracts a DateTimeOffset from another DateTimeOffsetSubtracts a DateTimeOffset from another DateTimeOffset
12.Subtracts a time interval from DateTimeOffsetSubtracts a time interval from DateTimeOffset
13.Converts DateTimeOffset to local time.Converts DateTimeOffset to local time.
14.Gets a DateTime value that represents the Coordinated Universal Time (UTC) date and time from DateTimeOffset
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.