STATIC FUNCTION DateDiff ( period AS String, Date1 AS Date, Date2 AS Date ) AS Integer |
Period is a string expression that is the interval to be returned.
Period | Description |
---|---|
yyyy | Year |
q | Quarter |
m | Month |
y | Day of year |
d | Day |
w | Weekday - Note: A Weekday is Monday to Friday in Gambas. This is different to VB in which w = d |
ww | Week |
h | Hour |
n | Minute |
s | Second |