EncodeDateTime
Sub EncodeDateTime($year As Integer, $month As Integer, $day As Integer, $hour As Integer, $min As Integer, $sec As Integer) As DateTime
Returns a DateTime value that represents the specified year, month, day, hour, minute, and second.
Parameters
- $year ... Integer value.
- $month ... Integer value.
- $day ... Integer value.
- $hour ... Integer value.
- $min ... Integer value.
- $sec ... Integer value.
Example:
Dim $s
' Encode a date/time
$s = EncodeDateTime(2023, 11, 23, 12, 0, 30)