CDateToUnoDate Function

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

āļšāˇāļģāļš āļģāˇ“āļ­āˇ’āļē:


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

Please support us!