CDateToUnoDateTime Function

Returns the time part of the date as a UNO com.sun.star.util.DateTime struct.

語法

CDateToUnoDateTime(aDate)

傳回值類型

com.sun.star.util.DateTime

參數:

aDate: Date value to convert

錯誤代碼:

5 無效的程序呼叫

示例:

Sub ExampleCDateToUnoDateTime

    aDatabaseRow.updateTimestamp(3, CDateToUnoDateTime(Now))

End Sub