converting custom field date format

I am using the More Fields plugin which gives me the ability to create a date formatted YYYY/mm/dd and I want to convert that to be shown like: February 11, 2011

Is this possible?

Related posts

Leave a Reply

3 comments

  1. Do you have issue with exactly converting or retrieval? Converting is trivial and is plain PHP:

    date('F j, Y', strtotime($date));
    

    For more complex and WordPress-specific way with localization support see date_i18n() function.

  2. This works for me (inside the loop)…

    <?php $date = get_post_meta($post->ID, 'CUSTOM-FIELD-HERE', true); if($date != ''){echo date("l jS F Y", strtotime($date));} ?>