Custom Field as customary date?
-
I am retreiving the meta data in a custom field in my posts with the following code:
<?php echo get_post_meta($post->ID,'upcomingeventdate', true) ?>
In each post, I am entering in the custom field a date, for example 20101130, which is displayed as such at the end of each post. What I want is for the date to be displayed in a customary way such as 11/30/2010.
I would appreciate it if anyone code help with the code or direct me to where I can read how to do it. Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Field as customary date?’ is closed to new replies.