Want to display my custom date archive to date.php but dont know how

You will need to write a custom rewrite rule for this.

Just copy the following code into your functions.php and flush rewrite rules.

 
function xlinkerz_custom_archive_rewrite_rule( $rewrite_rules ) {

  $custom_slug = 'custom_archive';

  $year_rule = array( $custom_slug . '/([0-9]{4})/([0-9]{1,2})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]' );

  $month_rule = array( $custom_slug . '/([0-9]{4})/?$' => 'index.php?year=$matches[1]' );

 // Merging rules
 $rewrite_rules = $year_archive + $month_archive + $rewrite_rules;

 return $rewrite_rules;

}

add_filter('rewrite_rules_array', 'xlinkerz_custom_archive_rewrite_rule');

*Flushing rewrite rules can be done in several ways, the easiest way is to go to the admin area and just save the permalinks. Remember you should not be calling flush_rewrite_rules(); within a function which defines new rewrite rules.

error code: 523