<?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>JamesMarquez.com &#187; code snippets</title>
	<atom:link href="http://www.jamesmarquez.com/tag/code-snippets/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jamesmarquez.com</link>
	<description>filipino web applications developer and designer</description>
	<lastBuildDate>Sat, 29 May 2010 04:03:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to get the first date of the week in PHP?</title>
		<link>http://www.jamesmarquez.com/how-to-get-the-first-date-of-the-week-in-php.html</link>
		<comments>http://www.jamesmarquez.com/how-to-get-the-first-date-of-the-week-in-php.html#comments</comments>
		<pubDate>Mon, 21 Jul 2008 05:30:45 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[PHP Snippets]]></category>
		<category><![CDATA[code snippets]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=8</guid>
		<description><![CDATA[To get the first date of the current week, you need subtract the numeric representation of the day of the week to the given date, in this case the current date.
The code will return the timestamp of the first date of the current date.

$timestamp = mktime(0, 0, 0, date('m'), date('d') - date('w'), date('Y'));

From the code [...]]]></description>
			<content:encoded><![CDATA[<p>To get the first date of the current week, you need subtract the numeric representation of the day of the week to the given date, in this case the current date.</p>
<p>The code will return the timestamp of the first date of the current date.<br />
<code><br />
$timestamp = mktime(0, 0, 0, date('m'), date('d') - date('w'), date('Y'));<br />
</code></p>
<p>From the code above, we can create functions that will return the first day of the week on any given date.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/how-to-get-the-first-date-of-the-week-in-php.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
