20 lines
578 B
Plaintext
Raw Normal View History

2012-07-22 16:44:23 +10:00
<h3>day() function</h3>
Extract the day from a date, or the number of days
from a <code>Interval</code>
<h4>Syntax</h4>
<code>day(date)</code><br>
<code>day(Interval)</code><br>
<h4>Arguments</h4>
<code>date</code> - is date or datetime. The date to extract the day from.
<br>
<code>Interval</code> - is Interval. The Interval to return the number of days from.
<h4>Example</h4>
<!-- Show example of function.-->
<code>day('2012-05-12') &rarr; 12</code><br>
<code>day(tointerval('3 days')) &rarr; 3</code><br>
<code>day(age('2012-01-01','2010-01-01')) &rarr; 730</code><br>
2012-07-22 16:44:23 +10:00