forked from amazingfate/help
69 lines
4.1 KiB
XML
69 lines
4.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--***********************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: func_date.xhp,v $
|
|
*
|
|
* $Revision: 1.5 $
|
|
*
|
|
* last change: $Author: rt $ $Date: 2005-09-07 18:02:00 $
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
************************************************************************-->
|
|
|
|
<helpdocument version="1.0">
|
|
<meta>
|
|
<topic id="textscalc01func_datexml" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">DATE</title>
|
|
<filename>/text/scalc/01/func_date.xhp</filename>
|
|
</topic>
|
|
<history>
|
|
<created date="2004-05-19T17:17:34">extracted from 04060102</created>
|
|
<lastedited date="2004-09-06T12:17:16"/>
|
|
</history>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id3155511"><bookmark_value>DATE function</bookmark_value>
|
|
</bookmark>
|
|
<bookmark xml-lang="en-US" branch="hid/HID_FUNC_DATUM" id="bm_id3149022" localize="false"/>
|
|
<paragraph role="heading" id="hd_id3155511" xml-lang="en-US" level="2" l10n="U" oldref="3"><variable id="date"><link href="text/scalc/01/func_date.xhp">DATE</link>
|
|
</variable></paragraph>
|
|
<paragraph role="paragraph" id="par_id3153551" xml-lang="en-US" l10n="U" oldref="4"><ahelp hid="HID_FUNC_DATUM">This function converts a date written as year, month, day to an internal serial number and displays it in the cell's formatting.</ahelp> The default format of a cell containing the DATE function is the date format, but you can format the cells with the <emph>0</emph> number format, which displays the internal serial number of the date as a number.</paragraph>
|
|
<paragraph role="heading" id="hd_id3148590" xml-lang="en-US" level="3" l10n="U" oldref="5">Syntax</paragraph>
|
|
<paragraph role="paragraph" id="par_id3150474" xml-lang="en-US" l10n="U" oldref="6">DATE(year; month; day)</paragraph>
|
|
<paragraph role="paragraph" id="par_id3152815" xml-lang="en-US" l10n="U" oldref="7">
|
|
<emph>Year</emph> is an integer between 1583 and 9956 or 0 and 99.</paragraph>
|
|
<paragraph role="paragraph" id="par_id3153222" xml-lang="en-US" l10n="U" oldref="174">In <emph>Tools - Options - $[officename] - General </emph>you can set from which year a two-digit number entry is recognized as 20xx.</paragraph>
|
|
<paragraph role="paragraph" id="par_id3155817" xml-lang="en-US" l10n="U" oldref="8">
|
|
<emph>Month</emph> is an integer between 1 and 12 indicating the month.</paragraph>
|
|
<paragraph role="paragraph" id="par_id3153183" xml-lang="en-US" l10n="U" oldref="9">
|
|
<emph>Day</emph> is a number between 1 and 31 indicating the day of the month.</paragraph>
|
|
<paragraph role="paragraph" id="par_id3156260" xml-lang="en-US" l10n="U" oldref="10">If the values for month and day are higher, they are carried over to the next digit. If you enter =DATE(00;12;31) the result will be "12/31/00." If, on the other hand, you enter =DATE(00;13;31) the result will be "1/31/01."</paragraph>
|
|
<paragraph role="heading" id="hd_id3147477" xml-lang="en-US" level="3" l10n="U" oldref="12">Example</paragraph>
|
|
<paragraph role="paragraph" id="par_id3152589" xml-lang="en-US" l10n="U" oldref="16">DATE("00;1;1") yields 1/1/00</paragraph>
|
|
</body>
|
|
</helpdocument>
|