<HTML> <HEAD> <meta charset="UTF-8"> <title>toDateF - kvision</title> <link rel="stylesheet" href="../../../style.css"> </HEAD> <BODY> <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">kotlin.String</a> / <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> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a> <span class="symbol">=</span> "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></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>