It is useful to operate on dates and times.
Property Day As Integer (ReadWrite)
Property Month As Integer (ReadWrite)
Property Year As Integer (ReadWrite)
Property Hour As Integer (ReadWrite)
Property Minute As Integer (ReadWrite)
Property Second As Integer (ReadWrite)
Property MSecond As Integer (ReadWrite)
Function AsString() As String
Function AsString(DateTimeFormat As String) As String
Possibles values are StandardDate, LongDate, MediumDate, ShortDate, StandardTime, LongTime, MediumTime, ShortTime
e.g. AsString(“StandardDate”)
AsString(kb.StandardDate)
Function AsString(DateTimeFormat As String) As String
e.g. AsString(”yyyy-MM-dd …”)
Function DayOfWeek() As String
Possible values are Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
Function DayOfYear() As Integer
Function DaysInMonth() As Integer
Function DaysInYear() As Integer
Function WeekNumber () As Integer
Function IsLeapYear() As Boolean
Function Equal(OtherDateTime As DateTime) As Boolean
Function OlderAs(OtherDateTime As DateTime) As Boolean
Function YoungerAs(OtherDateTime As DateTime) As Boolean
Function DiffDays(OtherDateTime As DateTime) As Integer
Function DiffSeconds(OtherDateTime As DateTime) As Integer
Function DiffMSeconds(OtherDateTime As DateTime) As Integer
Sub AddDate(OtherDateTime As DateTime)
Sub AddDays(Days As Integer)
Sub AddMonths(Months As Integer)
Sub AddYears(Years As Integer)
Sub SubDate(OtherDateTime As DateTime)
Sub SubDays(Days As Integer)
Sub SubMonths(Months As Integer)
Sub SubYears(Years As Integer)
Sub AddTime(OtherDateTime As DateTime)
Sub AddHours(Hours As Integer)
Sub AddMinutes(Minutes As Integer)
Sub AddSeconds(Seconds As Integer)
Sub AddMSeconds(Seconds As Integer)
Sub SubHours(Hours As Integer)
Sub SubMinutes(Minutes As Integer)
Sub SubSeconds(Seconds As Integer)
Sub SubMSeconds(Seconds As Integer)
Static Function Now() As DateTime
Static Function DateTimeFormat(Format As String) As String
LongFormat, ShortFormat
Static Function DateFormat(Format As String) As String
LongFormat, ShortFormat
Static Function TimeFormat(Format As String) As String
LongFormat, ShortFormat
Static Function CurrentDate() As DateTime
Static Function CurrentTime() As DateTime
Static Function FromString(DateTime As String) As DateTime
Static Function CurrentDayOfWeek() As Integer
Static Function CurrentMonthOfYear() As Integer
Static Function Weekday(Date As DateTime) As Integer
Static Function YearMonth(Date As DateTime) As Integer
Static Function IsDateValid(Year As Integer, Month As Integer, Day As Integer) As Boolean
Static Function IsTimeValid(Hour As Integer, Minute As Integer, Second As Integer) As Boolean
Static Function IsDateTimeValid(Year As Integer, Month As Integer, Day As Integer, Hour As Integer, Minute As Integer, Second As Integer) As Boolean
Static Function IsDateTimeValid(DateTime) As Boolean
Static Function MonthName (Month As Integer, Format As String) As String
Static Function DayName (WeekDay As Integer, Format As String) As String