HMyAG‖

qBur8‖CDateToUnoDate Function

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

WbEXn‖Syntax:


cPRUh‖CDateToUnoDate(aDate)

iGwfJ‖Return value:

2okBg‖com.sun.star.util.Date

RgSmL‖Parameters:

XCKx8‖ aDate: Date to convert

SEjHR‖Error codes:

5 Invalid procedure call

joa6W‖Example:


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