Returns a date value representation of a date value that has been rounded to a specified interval.
Syntax:
MathLibObject.RoundDate(Interval As String, Number As Long, dtDate As Date)
The RoundDate Method (MathLib Object) syntax has these parts:
| Part |
Description |
| ActiveGanttVBNCtl |
An object expression that evaluates to an ActiveGantt Schedule Control. |
| Interval |
Required. A string valuethat determines the interval of time that you want to round to as described in settings. |
| Number |
Required. A long integer value that determines the number of intervals. |
| dtDate |
Required. The date value that you want to round. |
The settings for Interval are:
| Setting |
Description |
| yyyy |
Year. |
| q |
Quarter. |
| m |
Month. |
| d |
Day. |
| ww |
Week. |
| h |
Hour. |
| n |
Minute. |
| s |
Second. |
Remarks:
You can use the RoundDate method to round dates.