Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTDate Methods

Constructor / Destructor

  • CTDate(): Creates a CTDate object
  • ~CTDate(): Destroys a CTDate object and resets all the dependent objects

Date Handling

  • GetDate(): Retrieves the date.
  • SetDate(): Sets the date to the CTDate object.
  • Pack(): Packs a year, month and day value into a CTDATE (uint) type value.
  • Unpack(): Unpacks a CTDATE (uint) type value into a year, month and day values
  • Year(): Retrieves the year component of a packed CTDATE (uint) type value
  • Month(): Retrieves the month component of a packed CTDATE (uint) type value
  • Day(): Retrieves the day component of a packed CTDATE (uint) type value
  • DayOfWeek(): Retrieves the day of the week from a packed CTDATE (uint) type value.
  • IsLeapYear(): Indicates if the year component of a packed CTDATE (uint) type value is a leap year
  • DateToString(): Converts a packed CTDATE (uint) type value to a String object
  • StringToDate(): Converts a String object to a date object
  • CurrentDate(): Retrieves the current system date.

In This Section

CTDate.CTDate

CTDate.~CTDate

CTDate.CurrentDate

CTDate.DateToString

CTDate.Day

CTDate.DayOfWeek

CTDate.GetDate

CTDate.IsLeapYear

CTDate.Month

CTDate.Pack

CTDate.SetDate

CTDate.StringToDate

CTDate.Unpack

CTDate.Year

TOCIndex