Blogs Archives

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 25, 2011   (RSS)

Re: [design9] Blogs Archives

By Jason - May 25, 2011

Hi April,

You can try something like this:

<?php
$date = @$_REQUEST['date_year']."-".@$_REQUEST['date_month']."-28";
$formattedDate = date("F Y", strtotime($date));
?>


This creates a "date" based on the 2 variables in the string (we use 28 for the "day" since all months will have at least 28 days. This number isn't important, but it helps php decipher which variables are months, days, and years). We then format that date into the form Month Year. You can then output $formattedDate where ever you want.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Blogs Archives

By design9 - May 25, 2011

Thanks Jason!

That works perfectly! :)

April