Click or drag to resize

LocalDate Class

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 Hierarchy
SystemObject
  CassandraLocalDate

Namespace:  Cassandra
Assembly:  Cassandra (in Cassandra.dll) Version: 3.11.0
Syntax
C#
public class LocalDate : IComparable<LocalDate>, 
	IEquatable<LocalDate>

The LocalDate type exposes the following members.

Constructors
  NameDescription
Public methodLocalDate
Creates a new instance of LocalDate
Top
Properties
  NameDescription
Public propertyDay
Public propertyMonth
Public propertyYear
Top
Methods
  NameDescription
Public methodCompareTo
Compares this instance value to another and returns an indication of their relative values.
Public methodStatic memberDaysSinceJan1
Returns the amount of days since Jan 1, for a given month/day
Public methodEquals(Object) (Overrides ObjectEquals(Object).)
Public methodEquals(LocalDate)
Determines if the value is equal to this instance.
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodStatic memberParse
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).
Public methodToDateTimeOffset
Returns the DateTimeOffset representation of the LocalDate for dates between 0001-01-01 and 9999-12-31
Public methodToString
Returns the string representation of the LocalDate in yyyy-MM-dd format
(Overrides ObjectToString.)
Top
Operators
See Also