forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
22 lines
2.3 KiB
HTML
22 lines
2.3 KiB
HTML
<a name="dli_spark_getdate"></a><a name="dli_spark_getdate"></a>
|
|
|
|
<h1 class="topictitle1">getdate</h1>
|
|
<div id="body8662426"><p id="dli_spark_getdate__en-us_topic_0000001645795534_p18471163815215">This function is used to return the current system time, in the <strong id="dli_spark_getdate__en-us_topic_0000001645795534_b13625652121219">yyyy-mm-dd hh:mi:ss</strong> format.</p>
|
|
<p id="dli_spark_getdate__en-us_topic_0000001645795534_p412819597112">Similar function: <a href="dli_spark_current_date.html#dli_spark_current_date">current_date</a>. The <strong id="dli_spark_getdate__en-us_topic_0000001645795534_b176231801018">current_date</strong> function is used to return the current date, in the <strong id="dli_spark_getdate__en-us_topic_0000001645795534_b89071904145">yyyy-mm-dd</strong> format.</p>
|
|
<div class="section" id="dli_spark_getdate__en-us_topic_0000001645795534_section45291954203217"><h4 class="sectiontitle">Syntax</h4><pre class="screen" id="dli_spark_getdate__en-us_topic_0000001645795534_screen374425713247">getdate()</pre>
|
|
</div>
|
|
<div class="section" id="dli_spark_getdate__en-us_topic_0000001645795534_section992014913317"><h4 class="sectiontitle">Parameters</h4><p id="dli_spark_getdate__en-us_topic_0000001645795534_p191801015792">None</p>
|
|
</div>
|
|
<div class="section" id="dli_spark_getdate__en-us_topic_0000001645795534_section210162513312"><h4 class="sectiontitle">Return Values</h4><p id="dli_spark_getdate__en-us_topic_0000001645795534_p1240612497394">The return value is of the STRING type, in the <strong id="dli_spark_getdate__en-us_topic_0000001645795534_b12191222717449">yyyy-mm-dd hh:mi:ss</strong> format.</p>
|
|
</div>
|
|
<div class="section" id="dli_spark_getdate__en-us_topic_0000001645795534_section13277192233920"><h4 class="sectiontitle">Example Code</h4><p id="dli_spark_getdate__en-us_topic_0000001645795534_p5504181217114">If the current time is <strong id="dli_spark_getdate__en-us_topic_0000001645795534_b4623920101414">2023-08-10 10:54:00</strong>, <strong id="dli_spark_getdate__en-us_topic_0000001645795534_b13624720121416">2023-08-10 10:54:00</strong> is returned.</p>
|
|
<pre class="screen" id="dli_spark_getdate__en-us_topic_0000001645795534_screen1818218211113">select getdate();</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_08_0471.html">Date Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|