CTime64.SetDateTimemethod
Sets the date and time of this **CTime64** object.
Syntax
FUNCTION SetDateTime (BYVAL nYear AS WORD, BYVAL nMonth AS WORD, BYVAL nDay AS WORD, BYVAL nHour AS WORD = 0, BYVAL nMin AS WORD = 0, BYVAL nSec AS WORD = 0) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
nYear | The year (1970-3000). | |
nMonth | The month (1-12). | |
nDay | The day (1-31). | |
nHour | The hour (0-23). | |
nMinute | The minutes (0-59). | |
nHour | The seconds (0-59). |
Description
Sets the date and time of this CTime64 object.
Example
' // Year = 2017, Month = 10 (October), Day = 9, Hour = 11, Minutes = 32, Seconds = 45 DIM ct AS CTime64 = CTime64(2017, 10, 9, 11, 32, 45)
Reference
- Include file
CTime64.inc - Defined in AfxNova/CTime64.inc:444
- Documented in DateTime/CTime64 Class.md
- Topic: CTime64 Class