<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>data Archivi - Cesare Bordi | Innovation Manager &amp; Back-end Developer</title>
	<atom:link href="https://cesarebordi.it/tag/data/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.cesarebordi.it/tag/data/</link>
	<description>Innovare con soluzioni software efficaci e gioco di squadra</description>
	<lastBuildDate>Wed, 03 Aug 2016 10:19:59 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://cesarebordi.it/wp-content/uploads/2016/02/CB-logo-88x88.png</url>
	<title>data Archivi - Cesare Bordi | Innovation Manager &amp; Back-end Developer</title>
	<link>https://www.cesarebordi.it/tag/data/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Javascript: come calcolare l&#8217;età</title>
		<link>https://cesarebordi.it/javascript-calcolare-eta/</link>
					<comments>https://cesarebordi.it/javascript-calcolare-eta/#respond</comments>
		
		<dc:creator><![CDATA[cesarebordi]]></dc:creator>
		<pubDate>Sat, 14 May 2016 16:27:28 +0000</pubDate>
				<category><![CDATA[CSS & JS]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[javascrpit]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[web developer]]></category>
		<category><![CDATA[web project]]></category>
		<guid isPermaLink="false">http://www.cesarebordi.it/?p=310</guid>

					<description><![CDATA[<p>Da buon web developer, ho appena terminato l&#8217;implementazione del facebook login così da precompilare alcuni dati richiesti in un form di registrazione. Tra questi il campo &#8220;età&#8220;. Ora,...</p>
<p>L'articolo <a href="https://cesarebordi.it/javascript-calcolare-eta/">Javascript: come calcolare l&#8217;età</a> sembra essere il primo su <a href="https://cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Da buon<strong> web developer</strong>, ho appena terminato l&#8217;<strong>implementazione</strong> del <strong><a href="https://developers.facebook.com/docs/facebook-login" target="_blank">facebook login</a></strong> così da precompilare alcuni dati richiesti in un <strong>form di registrazione</strong>. Tra questi il campo &#8220;<strong>età</strong>&#8220;.<span id="more-310"></span></p>
<p>Ora, <strong>calcolare l&#8217;età</strong> sembra banale, ma non lo è.<br />
Non basta fare la differenza fra l&#8217;anno attuale e quello di nascita, bisogna tener conto anche del mese, del giorno e del formato di data che, nel caso di facebook è mm/dd/aaaa.</p>
<p>Ho quindi realizzato una pratica <strong>funzione javascript per calcolare l&#8217;età</strong> che finirà nella mia personale collezione!<br />
L&#8217;unico argomento  richiesto dalla funzione è una data di nascita, in qualsiasi formato.</p>
<pre class="brush: jscript; title: ; notranslate">
function calcAge (birthday) {
    birthday = new Date(birthday);
    today     = new Date();

    var years = (today.getFullYear() - birthday.getFullYear());

    if (today.getMonth() &lt; birthday.getMonth() || 
        today.getMonth() == birthday.getMonth() &amp;&amp; today.getDate() &lt; birthday.getDate()) {
        years--;
    }

    return years;
}
</pre>
<p>&nbsp;</p>
<p>L'articolo <a href="https://cesarebordi.it/javascript-calcolare-eta/">Javascript: come calcolare l&#8217;età</a> sembra essere il primo su <a href="https://cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cesarebordi.it/javascript-calcolare-eta/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Php, date(), timestamp e altri formati</title>
		<link>https://cesarebordi.it/php-date-timestamp-e-altri-formati/</link>
					<comments>https://cesarebordi.it/php-date-timestamp-e-altri-formati/#respond</comments>
		
		<dc:creator><![CDATA[cesarebordi]]></dc:creator>
		<pubDate>Tue, 01 Mar 2016 15:46:45 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[timestamp]]></category>
		<guid isPermaLink="false">http://www.cesarebordi.it/?p=169</guid>

					<description><![CDATA[<p>Annoto in questo articolo l&#8217;utilizzo della funzione Date() per i formati di data più comuni in PHP. $now = date(&#34;Y-m-d H:i:s&#34;); // 2015-03-10 17:16:18 (MySQL DATETIME) $now =...</p>
<p>L'articolo <a href="https://cesarebordi.it/php-date-timestamp-e-altri-formati/">Php, date(), timestamp e altri formati</a> sembra essere il primo su <a href="https://cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Annoto in questo articolo l&#8217;utilizzo della <strong>funzione Date()</strong> per i <strong>formati di data</strong> più comuni in <strong>PHP</strong>.</p>
<pre class="brush: php; title: ; notranslate">
$now = date(&quot;Y-m-d H:i:s&quot;);                   // 2015-03-10 17:16:18 (MySQL DATETIME)
$now = date(&quot;Ymd&quot;);                           // 20150310
$now = date(&quot;Y/m/d&quot;);                         // 2015/03/10
$now = date(&quot;H:i:s&quot;);                         // 17:16:18
$now = date(&quot;F j, Y, g:i a&quot;);                 // March 10, 2015, 5:16 pm
$now = date(&quot;m.d.y&quot;);                         // 03.10.15
$now = date('h-i-s, j-m-y, it is w Day');     // 05-16-18, 10-03-15, 1631 1618 6 Satpm01
$now = date('\i\t \i\s \t\h\e jS \d\a\y.');   // it is the 10th day.
$now = date(&quot;D M j G:i:s T Y&quot;);               // Sat Mar 10 17:16:18 MST 2015
$now = date('H:m:s \m \i\s\ \m\o\n\t\h');     // 17:03:18 m is month
</pre>
<p>L'articolo <a href="https://cesarebordi.it/php-date-timestamp-e-altri-formati/">Php, date(), timestamp e altri formati</a> sembra essere il primo su <a href="https://cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cesarebordi.it/php-date-timestamp-e-altri-formati/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
