CDateToUnoDate Function

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

Syntax:

CDateToUnoDate(aDate)

рд╡рд╛рдкрд╕реА рдореВрд▓реНрдп:

com.sun.star.util.Date

рдкреИрд░рд╛рдореАрдЯрд░

aDate: Date to convert

Error codes:

5 Invalid procedure call

рдЙрджрд╛рд╣рд░рдг:

Sub ExampleCDateToUnoDate

    aDatabaseRow.updateDate(3, CDateToUnoDate(Now))

    aDateControl.Date = CDateToUnoDate(Now)

End Sub