I think that you are looking for the function get_post_status
Example:
if (get_post_status($postid)=='publish')
echo date_i18n( $date_format, strtotime( $expiration_date ) );
I think that you are looking for the function get_post_status
Example:
if (get_post_status($postid)=='publish')
echo date_i18n( $date_format, strtotime( $expiration_date ) );