Hey. I'm using a front-end GF to allow users to create a 'Project' custom post type. I'm using the Date field (from Advanced Fields, with the jQuery datepicker) on a couple of fields to allow users to set a project start and finish date.
I can output these to my template fine. What I'd like is a way to test if the End Date field is before or after the current date - so I can display a 'Finished' or 'Still Active' message.
This is the code that outputs the date to the template:
<?php $project_enddate = get_post_meta($post->ID, 'project_enddate', true);
if($project_enddate) : ?>
<p><strong>End Date:</strong> <?php echo $project_enddate; ?></p>
<?php endif; ?>
BTW I am using dd/mm/yyyy format as I'm in the UK. If anyone has an idea on how to do this I'd be very grateful.
Thanks