CDateFromUnoDate Function

Converts a UNO com.sun.star.util.Date struct to a Date value.

語法


CDateFromUnoDate(aDate)

傳回值類型

日期

參數:

aDate: Date to convert

錯誤代碼:

5 無效的程序呼叫

示例:


Sub ExampleCDateFromUnoDate
    MsgBox(CDateFromUnoDate(aDatabaseRow.getDate(3)))
    MsgBox(CDateFromUnoDate(aDateControl.Date))
End Sub

Please support us!