Blog Archives |
[eluser]Yash[/eluser]
I've date values in a field ex 2008-06-11 02:07:08 2007-02-23 14:11:11 2007-02-06 14:11:11 Now I need to convert these into text like June 2008 Feb 2007 and like so... Is there any direct function for this.Or I need to write a function. Thank you
[eluser]Yash[/eluser]
Code: $query = $this->db->query('select DISTINCT PostedDate from posts'); array(3) { [0]=> string(11) "April 2003 " [1]=> string(14) "February 2003 " [3]=> string(10) "June 2008 " } Now I want April 2003 contains a link like www.site.com/blog/2003-04 How to achieve that and Is this a right way to do..
[eluser]Yash[/eluser]
Complete working function Code: $query = $this->db->query('select DISTINCT PostedDate from posts'); |
Welcome Guest, Not a member yet? Register Sign In |