I need to do something like this:

<?php $bloginfo = get_bloginfo( 'language' );
     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.


get_bloginfo returns strings so this works fine:

$language = get_bloginfo( 'language' );
if(language == 'en-US')
    the_time('jS F Y');
  • Thank you, Bainternet.(:D -1 question, im such a noob). By the way, I had to add $ to the var on the if statement to make it work (of course u know it). Thx again. – luprates Apr 3 '12 at 0:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.