summaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.utils/kotlin.-string/to-date-f.html
blob: 2f5ca8d982217e9b6e1c74b33c8aca73b35028a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>toDateF - kvision</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.utils</a>&nbsp;/&nbsp;<a href="index.html">kotlin.String</a>&nbsp;/&nbsp;<a href="./to-date-f.html">toDateF</a><br/>
<br/>
<h1>toDateF</h1>
<a name="pl.treksoft.kvision.utils$toDateF(kotlin.String, kotlin.String)"></a>
<code><span class="keyword">fun </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">.</span><span class="identifier">toDateF</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils$toDateF(kotlin.String, kotlin.String)/format">format</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a>&nbsp;<span class="symbol">=</span>&nbsp;"YYYY-MM-DD HH:mm:ss"<span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-date/index.html"><span class="identifier">Date</span></a><span class="symbol">?</span></code>
<p>Extension function to convert String to Date with a given date format.</p>
<h3>Parameters</h3>
<p><a name="format"></a>
<code>format</code> - date/time format</p>
<p><strong>Return</strong><br/>
Date object</p>
</BODY>
</HTML>