In VB6.0 I can use the DatePart function to return the current year, month and quarter per the system current date.
See below code:
'Determine current Month, Quarter and Year.
Month = DatePart("m", Date)
Qtr = DatePart("q", Date)
Year = DatePart("yyyy", Date)
'Check to see if this is a leap year. Boolean value used in Select Case below.
ThisIsALeapYear = IsDate("2/29/" & Year)
Is there anything similar in SQL???
Thank You, TNNTom
TOM
See below code:
'Determine current Month, Quarter and Year.
Month = DatePart("m", Date)
Qtr = DatePart("q", Date)
Year = DatePart("yyyy", Date)
'Check to see if this is a leap year. Boolean value used in Select Case below.
ThisIsALeapYear = IsDate("2/29/" & Year)
Is there anything similar in SQL???
Thank You, TNNTom
TOM