Date-Based Conditional Tag

Here is function I have for old posts:

function is_old_post( $days = 14 ) {

    if( !is_single() )
        return false;

    $id = get_the_ID();
    $date = get_post_field( 'post_date', $id );

    if( strtotime( $date ) < strtotime( "-{$days} days" ) )
        return true;

    return false;
}

Not tested, but you can probably tweak condition to be something like:

if( strtotime( $date ) < strtotime( 'October 2011' ) ) 

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)