CDateToUnoDate 函数

f返回日期为 UNO com.sun.star.util.Date struct.

语法:

CDateToUnoDate(aDate)

返回值:

com.sun.star.util.Date

参数:

aDate: 要转换的日期

错误代码:

5 无效的过程调用

示例:

Sub ExampleCDateToUnoDate

    aDatabaseRow.updateDate(3, CDateToUnoDate(Now))

    aDateControl.Date = CDateToUnoDate(Now)

End Sub