Struct DuckDBDateOnly
- Namespace
- DuckDB.NET.Native
- Assembly
- DuckDB.NET.Bindings.dll
public readonly struct DuckDBDateOnly
- Inherited Members
-
Constructors
DuckDBDateOnly(int, byte, byte)
public DuckDBDateOnly(int year, byte month, byte day)
Parameters
year
int
month
byte
day
byte
Properties
Day
Property Value
- byte
Month
public byte Month { get; }
Property Value
- byte
Year
Property Value
- int
Methods
FromDateTime(DateTime)
public static DuckDBDateOnly FromDateTime(DateTime dateTime)
Parameters
dateTime
DateTime
Returns
- DuckDBDateOnly
ToDateTime()
public DateTime ToDateTime()
Returns
- DateTime
Operators
explicit operator DateTime(DuckDBDateOnly)
public static explicit operator DateTime(DuckDBDateOnly dateOnly)
Parameters
dateOnly
DuckDBDateOnly
Returns
- DateTime
explicit operator DuckDBDateOnly(DateTime)
public static explicit operator DuckDBDateOnly(DateTime dateTime)
Parameters
dateTime
DateTime
Returns
- DuckDBDateOnly
implicit operator DateOnly(DuckDBDateOnly)
public static implicit operator DateOnly(DuckDBDateOnly dateOnly)
Parameters
dateOnly
DuckDBDateOnly
Returns
- DateOnly
implicit operator DuckDBDateOnly(DateOnly)
public static implicit operator DuckDBDateOnly(DateOnly date)
Parameters
date
DateOnly
Returns
- DuckDBDateOnly