Show monthly or daily archives

Before WordPress 4.1, you can show the date archive page titles with the following code: (Taken and slightly modified from the twentyfourteen theme)

if ( is_day() ) {
    printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );

} elseif ( is_month() ) {
    printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );

} elseif ( is_year() ) {
    printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );

} else {
    _e( 'Archives', 'twentyfourteen' );

}

As from WordPress 4.1 you can use one of the following functions