the_time(‘M’) does not work in WordPress

I need to get months like Jan, Feb in WordPress. I have tried:

the_time('M')
the_time('b')
the_date('M')
get_the_date('M')

But I get no output at all. All other formats except M work, and since it is printing the value right away I can not format it afterwards.

Read More

Any ideas?

Related posts

Leave a Reply

2 comments

  1. the_time('M') and the_date('M') do same thing and working
    Other 2 maybe didn’t work because i never used it try :

    <?php the_time('F j, Y'); ?> & <?php the_time('g:i a'); ?>