Take the 2-minute tour ×

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.

share|improve this question

1 Answer 1

get_bloginfo returns strings so this works fine:

$language = get_bloginfo( 'language' );
if(language == 'en-US')
    the_time('jS F Y');
share|improve this answer
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


