CDateToUnoDate Function

Returns the date as a UNO com.sun.star.util.Date struct.

語法


CDateToUnoDate(aDate)

傳回值類型

com.sun.star.util.Date

參數:

aDate: Date to convert

錯誤代碼:

5 無效的程序呼叫

示例:


Sub ExampleCDateToUnoDate
    aDatabaseRow.updateDate(3, CDateToUnoDate(Now))
    aDateControl.Date = CDateToUnoDate(Now)
End Sub

Please support us!