- String<div class="mdesc"><div class="short">Encodes an Object, Array or other value</div><div class="long">Encodes an Object, Array or other value<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>o</code> : Mixed<div class="sub-desc">The variable to encode</div></li></ul><strong>Returns:</strong><ul><li><code>String</code><div class="sub-desc">The JSON string</div></li></ul></div></div></div></td><td class="msource">JSON</td></tr></tbody></table><a id="Ext.util.JSON-events"></a><h2>Public Events</h2><div class="no-members">This class has no public events.</div></div>
\ No newline at end of file
+ String<div class="mdesc"><div class="short">Encodes an Object, Array or other value</div><div class="long">Encodes an Object, Array or other value<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>o</code> : Mixed<div class="sub-desc">The variable to encode</div></li></ul><strong>Returns:</strong><ul><li><code>String</code><div class="sub-desc">The JSON string</div></li></ul></div></div></div></td><td class="msource">JSON</td></tr><tr class="method-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.util.JSON-encodeDate"></a><b><a href="source/JSON.html#method-Ext.util.JSON-encodeDate">encodeDate</a></b>( <code>Date d</code> )
+ :
+ String<div class="mdesc"><div class="short">Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression.
+The ...</div><div class="long"><p>Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression.
+<b>The returned value includes enclosing double quotation marks.</b></p>
+<p>The default return format is "yyyy-mm-ddThh:mm:ss".</p>
+<p>To override this:</p><pre><code>Ext.util.JSON.encodeDate = <b>function</b>(d) {
+ <b>return</b> d.format(<em>'<em>"Y-m-d"</em>'</em>);
+};</code></pre><div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>d</code> : Date<div class="sub-desc">The Date to encode</div></li></ul><strong>Returns:</strong><ul><li><code>String</code><div class="sub-desc">The string literal to use in a JSON string.</div></li></ul></div></div></div></td><td class="msource">JSON</td></tr></tbody></table><a id="Ext.util.JSON-events"></a><h2>Public Events</h2><div class="no-members">This class has no public events.</div></div>
\ No newline at end of file