tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/6149-format-date-includeCascade CMS: Discussion 2015-08-06T20:21:13Ztag:help-archives.hannonhill.com,2010-02-09:Comment/375662262015-08-06T19:49:55Z2015-08-06T19:49:55Zformat-date include<div><p>Hi Karen,</p>
<p>You can see the definition of these templates <a href="https://github.com/hannonhill/XSLT-Workbook/blob/master/Uncategorized/format-date.xsl#L99-L103">
here</a> and <a href="https://github.com/hannonhill/XSLT-Workbook/blob/master/Uncategorized/format-date.xsl#L104-L108">
here</a>. To summarize:</p>
<ul>
<li><code>format-date-string</code> expects a string that is of a
date format. This template will call a Xalan JavaSript function
that uses <a href="http://www.w3schools.com/jsref/jsref_parse.asp"><code>Date.parse</code></a>
in the background, which attempts to parse the string into a
JavaScript Date object.</li>
<li><code>format-calendar-string</code> expects a string from a
<strong>calendar</strong> Data Definition field. These fields
generate a string in the format of <code>MM-dd-yyyy</code> (eg
<code>08-06-2015</code>).</li>
</ul>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/375662262015-08-06T20:10:56Z2015-08-06T20:10:56Zformat-date include<div><p>Thank you.</p>
<p>Karen Wilson<br>
Web Designer<br>
Southwestern Oklahoma State University<br>
(580) 774-6147 <a href="mailto:karen.wilson@swosu.edu">karen.wilson@swosu.edu</a><a href="mailto:karen.wilson@swosu.edu">karen.wilson@swosu.edu</a></p></div>karen.wilsontag:help-archives.hannonhill.com,2010-02-09:Comment/375662262015-08-06T20:21:11Z2015-08-06T20:21:11Zformat-date include<div><p>Not a problem at all, Karen, I am glad to hear my summary of the
two templates helped clarify things.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffith