Proper syntax for simple conditional bloginfo language

I need to do something like this:

<?php $bloginfo = get_bloginfo( 'language' );
  if($bloginfo->en-US){
     the_time('jS F Y');
  }else{ the_time('d/m/Y');
  };
 ?>

I cant find the proper way to wrap en-US.
Any ideas? Thank you in advance, people.

Related posts

Leave a Reply

1 comment

  1. get_bloginfo returns strings so this works fine:

    <?php 
    $language = get_bloginfo( 'language' );
    if(language == 'en-US')
        the_time('jS F Y');
    else
        the_time('d/m/Y');
    ?>