Return to Snippet

Revision: 1251
at September 27, 2006 08:45 by gdonald


Updated Code
function daysAgo( $days )
{
  return date( 'YmdHis', mktime( date( 'H' ),
                                 date( 'i' ),
                                 date( 's' ),
                                 date( 'm' ),
                                 date( 'd' ) - $days,
                                 date( 'Y' ) ) );
}

Revision: 1250
at September 27, 2006 08:44 by gdonald


Initial Code
function daysAgo( $days )
{
	return date( 'YmdHis', mktime(  date( 'H' ),
                                    date( 'i' ),
                                    date( 's' ),
                                    date( 'm' ),
                                    date( 'd' ) - $days,
                                    date( 'Y' ) ) );
}

Initial URL

                                

Initial Description

                                

Initial Title
php days ago date

Initial Tags
date

Initial Language
PHP