CDateToIso Function

Returns the date in ISO format without separators (YYYYMMDD) from a serial date number that is generated by the DateSerial or the DateValue or the CDateFromIso function.

The year part consists of at least four digits, with leading zeros if the absolute value is less than 1000, it can be negative with a leading minus sign if the date passed denotes a year before the common era (BCE) and it can have more than four digits if the absolute value is greater than 9999. The formatted string returned can be in the range "-327680101" to "327671231".

рджреНрд░рд╖реНрдЯрд╡реНрдп рдкреНрд░рддрд┐рдорд╛

Years less than 100 and greater than 9999 are supported since LibreOffice 5.4.


рд╡рд╛рдХреНрдп рд╕рдВрд░рдЪрдирд╛:


CDateToIso(рдирдореНрдмрд░)

рдорд╛рди рдлрд░реНрдХрд╛рдЙрдиреБрд╣реЛрд╕реН:

рд╕реНрдЯреНрд░рд┐рдЩ

рдкрд░рд╛рдорд┐рддрд┐рд╣рд░реВ:

рдирдореНрдмрд░: рдЗрдиреНрдЯрд┐рдЬрд░ рдЬрд╕рд▓реЗ рдХреНрд░рдорд┐рдХ рдорд┐рддрд┐ рдирдореНрдмрд░ рд╕рдорд╛рд╡реЗрд╢ рдЧрд░реНрджрдЫ ред

рддреНрд░реБрдЯрд┐ рд╕рдЩреНрдХреЗрддрд╣рд░реВ

5 рдЕрд╡реИрдз рдХрд╛рд░реНрдп-рд╡рд┐рдзрд┐ рдХрд▓

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


Sub ExampleCDateToIso
    рд╕рдиреНрджреЗрд╢ рдмрд╛рдХрд╕ "" & CDateToIso(рдЕрд╣рд┐рд▓реЗрдХреЛ) ,ремрек,"ISO рдорд┐рддрд┐"
End Sub

Please support us!