The closest would be strtotime: For example:
date('Y-m-d', strtotime(date('Y-m-d').' + 2 days')); would give you 2011-03-03 date('Y-m-d',strtotime(date('Y-m-d').' - 2 days')); would give you 2011-02-27 etc On 01/03/2011 09:09, pbkyriak wrote:
Hi all, last night I was checking out for new fancy staff, and i got onto a ruby gem called Chronic a natural date parsing lib. http://chronic.rubyforge.org/ eg "tomorrow" is 2011/3/2, or "next monday" is 2011/3/7!! extremely user friendly!! does anyone knows if there is something similar in php? best regards Panos
-- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en