merge the formfield patch from ooo-build
[ooovba.git] / helpcontent2 / source / text / scalc / 01 / func_eomonth.xhp
blobbcbb83d362ea2e87b2da1ddd26f51e1c3e018e69
1 <?xml version="1.0" encoding="UTF-8"?>
5 <!--
6 ***********************************************************************
8 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9 *
10 * Copyright 2008 by Sun Microsystems, Inc.
12 * OpenOffice.org - a multi-platform office productivity suite
14 * $RCSfile: func_eomonth.xhp,v $
15 * $Revision: 1.8 $
17 * This file is part of OpenOffice.org.
19 * OpenOffice.org is free software: you can redistribute it and/or modify
20 * it under the terms of the GNU Lesser General Public License version 3
21 * only, as published by the Free Software Foundation.
23 * OpenOffice.org is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU Lesser General Public License version 3 for more details
27 * (a copy is included in the LICENSE file that accompanied this code).
29 * You should have received a copy of the GNU Lesser General Public License
30 * version 3 along with OpenOffice.org. If not, see
31 * <http://www.openoffice.org/license.html>
32 * for a copy of the LGPLv3 License.
34 ************************************************************************
35 -->
38 <helpdocument version="1.0">
39 <meta>
40 <topic id="textscalc01func_eomonthxml" indexer="include" status="PUBLISH">
41 <title id="tit" xml-lang="en-US">EOMONTH</title>
42 <filename>/text/scalc/01/func_eomonth.xhp</filename>
43 </topic>
44 </meta>
45 <body>
46 <bookmark xml-lang="en-US" branch="index" id="bm_id3150991"><bookmark_value>EOMONTH function</bookmark_value>
47 </bookmark>
48 <bookmark xml-lang="en-US" branch="hid/HID_AAI_FUNC_EOMONTH" id="bm_id3158439" localize="false"/><paragraph role="heading" id="hd_id3150991" xml-lang="en-US" level="2" oldref="231"><variable id="eomonth"><link href="text/scalc/01/func_eomonth.xhp">EOMONTH</link>
49 </variable></paragraph>
50 <paragraph role="paragraph" id="par_id3152766" xml-lang="en-US" l10n="U" oldref="232"><ahelp hid="HID_AAI_FUNC_EOMONTH">Returns the date of the last day of a month which falls m<emph>onths</emph> away from the s<emph>tart date</emph>.</ahelp></paragraph>
51 <paragraph role="heading" id="hd_id3150597" xml-lang="en-US" level="3" l10n="U" oldref="233">Syntax</paragraph>
52 <paragraph role="code" id="par_id3150351" xml-lang="en-US" l10n="U" oldref="234">EOMONTH(StartDate; Months)</paragraph>
53 <paragraph role="paragraph" id="par_id3146787" xml-lang="en-US" l10n="U" oldref="235">
54 <emph>StartDate</emph> is a date (the starting point of the calculation).</paragraph>
55 <paragraph role="paragraph" id="par_id3155615" xml-lang="en-US" l10n="U" oldref="236">
56 <emph>Months</emph> is the number of months before (negative) or after (positive) the start date.</paragraph>
57 <paragraph role="heading" id="hd_id3156335" xml-lang="en-US" level="3" l10n="U" oldref="237">Example</paragraph>
58 <paragraph role="paragraph" id="par_id3154829" xml-lang="en-US" l10n="U" oldref="238">What is the last day of the month that falls 6 months after September 14 2001?</paragraph>
59 <paragraph role="paragraph" id="par_id3156143" xml-lang="en-US" l10n="U" oldref="239">
60 <item type="input">=EOMONTH(9.14.2001;6)</item> returns 3.31.2002.</paragraph>
61 </body>
62 </helpdocument>