Platforms to show: All Mac Windows Linux Cross-Platform

SQLDateTimeMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The SQL date/time value class.
Example
dim d as new SQLDateTimeMBS(2008, 3, 4, 23, 10, 20)

MsgBox d.StringValue // shows "2008-03-04T23:10:20"

see also
https://www.sqlapi.com/ApiDoc/class_s_a_date_time.html

  • 16 properties
  • 10 methods
    • method Constructor(DateTimeValue as DateTime)
    • method Constructor(DateValue as Date)
    • method Constructor(Hour as Integer, Minute as Integer, Second as Integer = 0, Fraction as Integer = 0)
    • method Constructor(other as SQLDateTimeMBS)
    • method Constructor(StringValue as String)
    • method Constructor(value as Double)
    • method Constructor(Year as Integer, Month as Integer, Day as Integer, Hour as Integer, Minute as Integer, Second as Integer = 0, Fraction as Integer = 0, TimeZone as String = "")
    • method Constructor(Year as Integer, Month as Integer, Day as Integer, Hour as Integer, Minute as Integer, Second as Integer, TimeZone as String)
    • method Set(DateTimeValue as DateTime)
    • method Set(value as Date)

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes

  • Version 21.2
  • Version 20.4
  • Version 20.0

The items on this page are in the following plugins: MBS SQL Plugin.


SQLDataProviderMBS   -   SQLErrorExceptionMBS


The biggest plugin in space...