<HTML> <HEAD> <meta charset="UTF-8"> <title>toStringF - 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.js.Date</a> / <a href="./to-string-f.html">toStringF</a><br/> <br/> <h1>toStringF</h1> <a name="pl.treksoft.kvision.utils$toStringF(kotlin.js.Date, kotlin.String)"></a> <code><span class="keyword">fun </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><span class="identifier">toStringF</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils$toStringF(kotlin.js.Date, 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/-string/index.html"><span class="identifier">String</span></a></code> <p>Extension function to convert Date to String 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/> String object</p> </BODY> </HTML>