Class LocalDate
  
  A date without a time-zone in the ISO-8601 calendar system.
LocalDate is an immutable date-time object that represents a date, often viewed as year-month-day.
This class is implemented to match the Date representation CQL string literals.
 
  
  
    Inheritance
    System.Object
    LocalDate
   
  
  
    Inherited Members
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
   
  Namespace: Dse
  Assembly: Dse.dll
  Syntax
  
    public class LocalDate : IComparable<LocalDate>, IEquatable<LocalDate>
   
  Constructors
  
  
  LocalDate(Int32, Int32, Int32)
  Creates a new instance of LocalDate
 
  
  Declaration
  
    public LocalDate(int year, int month, int day)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        year | 
        Year according to ISO-8601. Year 0 represents 1 BC. 
 | 
      
      
        | System.Int32 | 
        month | 
        The month number from 1 to 12 
 | 
      
      
        | System.Int32 | 
        day | 
        A day of the month from 1 to 31. 
 | 
      
    
  
  Properties
  
  
  Day
  
  
  Declaration
  
    public int Day { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
  Month
  
  
  Declaration
  
    public int Month { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
  Year
  
  
  Declaration
  
    public int Year { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Methods
  
  
  CompareTo(LocalDate)
  Compares this instance value to another and returns an indication of their relative values.
 
  
  Declaration
  
    public int CompareTo(LocalDate other)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
  DaysSinceJan1(Int32, Int32, Int32)
  Returns the amount of days since Jan 1, for a given month/day
 
  
  Declaration
  
    public static int DaysSinceJan1(int year, int month, int day)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        year | 
         | 
      
      
        | System.Int32 | 
        month | 
         | 
      
      
        | System.Int32 | 
        day | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
  Equals(LocalDate)
  Determines if the value is equal to this instance.
 
  
  Declaration
  
    public bool Equals(LocalDate other)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  Equals(Object)
  
  
  Declaration
  
    public override bool Equals(object obj)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Object | 
        obj | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  System.Object.Equals(System.Object)
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides
  System.Object.GetHashCode()
  
  Parse(String)
  Creates a new instance of LocalDate using the year, month and day provided in the form:
yyyy-mm-dd or days since epoch (i.e. -1 for Dec 31, 1969).
 
  
  Declaration
  
    public static LocalDate Parse(string value)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        value | 
         | 
      
    
  
  Returns
  
  
  ToDateTimeOffset()
  Returns the DateTimeOffset representation of the LocalDate for dates between 0001-01-01 and 9999-12-31
 
  
  Declaration
  
    public DateTimeOffset ToDateTimeOffset()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.DateTimeOffset | 
         | 
      
    
  
  
  ToString()
  Returns the string representation of the LocalDate in yyyy-MM-dd format
 
  
  Declaration
  
    public override string ToString()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Overrides
  System.Object.ToString()
  Operators
  
  
  Equality(LocalDate, LocalDate)
  
  
  Declaration
  
    public static bool operator ==(LocalDate value1, LocalDate value2)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  GreaterThan(LocalDate, LocalDate)
  
  
  Declaration
  
    public static bool operator>(LocalDate value1, LocalDate value2)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  GreaterThanOrEqual(LocalDate, LocalDate)
  
  
  Declaration
  
    public static bool operator >=(LocalDate value1, LocalDate value2)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  Inequality(LocalDate, LocalDate)
  
  
  Declaration
  
    public static bool operator !=(LocalDate value1, LocalDate value2)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  LessThan(LocalDate, LocalDate)
  
  
  Declaration
  
    public static bool operator <(LocalDate value1, LocalDate value2)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  LessThanOrEqual(LocalDate, LocalDate)
  
  
  Declaration
  
    public static bool operator <=(LocalDate value1, LocalDate value2)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Implements
  
      System.IComparable<T>
  
  
      System.IEquatable<T>