![]() |
![]() |
CorelScriptTools.GetDateInfo
Sub GetDateInfo(Date As Date, Year As Long, Month As Long, Day As Long, DayOfWeek As Long)
Member of CorelScriptTools
The GetDateInfo method extracts the components of a date expression to numeric variables.
In the following code example, the first line declares the date variable TodayDate. This variable is then assigned the current date with the GetCurrDate function. The variables Y, M, D, and DW are then assigned their respective component of the date stored in TodayDate. If TodayDate was set to May 29, 1996, then Y=1996, M=5, D=29, and DW=4.
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.