From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../source/text/sbasic/shared/03100300.xhp | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 helpcontent2/source/text/sbasic/shared/03100300.xhp (limited to 'helpcontent2/source/text/sbasic/shared/03100300.xhp') diff --git a/helpcontent2/source/text/sbasic/shared/03100300.xhp b/helpcontent2/source/text/sbasic/shared/03100300.xhp new file mode 100644 index 000000000..adabbdc0b --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/03100300.xhp @@ -0,0 +1,62 @@ + + + + + + + CDate Function + /text/sbasic/shared/03100300.xhp + + + + + +
+ + CDate function + +CDate Function +Converts any string or numeric expression to a date value. +
+ + + +CDate (Expression) + + +Return value: +Date + + + Expression: Any string or numeric expression that you want to convert. +
+ When you convert a string expression, the date and time must be entered either in one of the date acceptance patterns defined for your locale setting (see %PRODUCTNAME - PreferencesTools - Options - Language Settings - Languages) or in ISO date format (momentarily, only the ISO format with hyphens, e.g. "2012-12-31" is accepted). In numeric expressions, values to the left of the decimal represent the date, beginning from December 31, 1899. Values to the right of the decimal represent the time. +
+ + + + + Sub ExampleCDate + MsgBox cDate(1000.25) ' 09.26.1902 06:00:00 + MsgBox cDate(1001.26) ' 09.27.1902 06:14:24 + End Sub + + + +
-- cgit v1.2.3