Hide publish date when update date

I was showing publish and update date together,

but I'm trying to do it like this, hide the publish date if there is an update date

time datetime=?php the_modified_time( 'c' ); ?
                • Update Date: ?php the_modified_time( 'j F Y - H:i' ); ?
    /time

    time datetime=?php the_time( 'c' ); ?
              • Publish Date: ?php the_time( 'j F Y - H:i' ); ?
    /time
                 

how can i do it using 'else if'

Topic php date-time Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.