CDateToIso Function [Runtime]

From LibreOffice Help
Jump to: navigation, search

Returns the date in ISO format from a serial date number that is generated by the DateSerial or the DateValue function.

Syntax:

CDateToIso(Number)

Return value:

String

Parameters:

Number: Integer that contains the serial date number.

Error Codes

5 Invalid procedure call

Example:

Sub ExampleCDateToIso
    MsgBox "" & CDateToIso(Now) ,64,"ISO Date"
End Sub