rt

解决方案 »

  1.   

    DATETIME( ) Function
    Example See AlsoReturns the current date and time as a DateTime value, or creates a year 2000-compliant DateTime value.SyntaxDATETIME([nYear, nMonth, nDay [, nHours [, nMinutes [, nSeconds]]]])ReturnsDateTimeArgumentsnYearSpecifies the year returned in the year 2000-compliant DateTime value. nYear can be a value from 100 to 9999.nMonthSpecifies the month returned in the year 2000-compliant DateTime value. nMonth can be a value from 1 to 12.nDaySpecifies the day returned in the year 2000-compliant DateTime value. nDay can be a value from 1 to 31.nHoursSpecifies the hours returned in the year 2000-compliant DateTime value. nHours can be a value from 0 (midnight) to 23 (11 P.M). Defaults to 0 if omitted.nMinutesSpecifies the minutes returned in the year 2000-compliant DateTime value. nMinutes can be a value from 0 to 59. Defaults to 0 if omitted.nSecondsSpecifies the seconds returned in the year 2000-compliant DateTime value. nSeconds can be a value from 0 to 59. Defaults to 0 if omitted.ResDATETIME( ) returns the current system DateTime if it is issued without the optional arguments.Include the optional arguments to return a year 2000-compliant DateTime value. For more information about creating year 2000-compliant DateTimes, see Year 2000 Date Support in Chapter 33, “Programming Improvements,” in the Programmer’s Guide.