CDateToUnoDate Function

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

Cú pháp:


CDateToUnoDate(aDate)

GIá trị trả về:

com.sun.star.util.Date

Tham số :

aDate: Date to convert

Error codes:

5 Sai gọi thủ tục

Thí dụ :


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

Please support us!