Get date value using day name and week number of a month php

Here,  i’m going to explain one of the most powerful functions of PHP. Suppose if we want to get the date value using day name (like Sunday, Monday etc… ) and week number (like First, Second, Third etc..), use PHP strftime() function. This function has some crazy behavior. See the example given below:

Like this, try other patterns also. For more info about strftime() function refer here. To know about PHP date relative formats, click here.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">