Release date Unknown

Release Date: php $acfdate2 = get_field('release_date3'); $date3 = new DateTime($acfdate2); $release_date2 = strtotime($date3->format('d-m-Y')); $isKnown2 = get_field('release_date2'); if($isKnown2 === "Yes") { #You know the release date if ($release_date2 < $today || $release_date2 === $today) { #The release date is in the past $link2 = get_field('beatport_url2'); if ($link2 !== "//www.beatport.com/release/") { #you know the url echo "Out Now!"; }else{ #you don't know the url echo "Out Now!"; } }elseif ($release_date2 > $today) { #The release date is in the future echo $date3->format('d-m-Y'); } }else{ #You don't know the release date echo "Unknown"; }?>

Tweet