1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
4<!--***********************************************************
5 *
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements.  See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership.  The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License.  You may obtain a copy of the License at
13 *
14 *   http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied.  See the License for the
20 * specific language governing permissions and limitations
21 * under the License.
22 *
23 ***********************************************************-->
24
25
26
27
28<meta>
29      <topic id="textscalc01func_datevaluexml" indexer="include" status="PUBLISH">
30         <title xml-lang="en-US" id="tit">DATEVALUE </title>
31         <filename>/text/scalc/01/func_datevalue.xhp</filename>
32      </topic>
33   </meta>
34   <body>
35<bookmark xml-lang="en-US" branch="index" id="bm_id3145621"><bookmark_value>DATEVALUE function</bookmark_value>
36</bookmark>
37<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DATWERT" id="bm_id3163820" localize="false"/>
38<paragraph xml-lang="en-US" id="hd_id3145621" role="heading" level="2" l10n="U"
39                 oldref="18"><variable id="datevalue"><link href="text/scalc/01/func_datevalue.xhp">DATEVALUE</link>
40</variable></paragraph>
41      <paragraph xml-lang="en-US" id="par_id3145087" role="paragraph" l10n="U" oldref="19"><ahelp hid="HID_FUNC_DATWERT">Returns the internal date number for text in quotes.</ahelp></paragraph>
42      <paragraph xml-lang="en-US" id="par_id3149281" role="paragraph" l10n="CHG" oldref="20">The internal date number is returned as a number. The number is determined by the date system that is used by $[officename] to calculate dates.</paragraph>
43      <paragraph xml-lang="en-US" id="par_id0119200903491982" role="paragraph" l10n="NEW">If the text string also includes a time value, DATEVALUE only returns the integer part of the conversion.</paragraph>
44      <paragraph xml-lang="en-US" id="hd_id3156294" role="heading" level="3" l10n="U"
45                 oldref="21">Syntax</paragraph>
46      <paragraph xml-lang="en-US" id="par_id3149268" role="code" l10n="U" oldref="22">DATEVALUE("Text")</paragraph>
47      <paragraph xml-lang="en-US" id="par_id3154819" role="paragraph" l10n="U" oldref="23">
48         <emph>Text</emph> is a valid date expression and must be entered with quotation marks.</paragraph>
49      <paragraph xml-lang="en-US" id="hd_id3156309" role="heading" level="3" l10n="U"
50                 oldref="24">Example</paragraph>
51      <paragraph xml-lang="en-US" id="par_id3155841" role="paragraph" l10n="CHG" oldref="25">
52         <emph>=DATEVALUE("1954-07-20")</emph> yields 19925.</paragraph>
53   </body>
54</helpdocument>