db_host, $config->db_user, $config->db_pass, $config->db_name); $db->set_charset('utf8'); $curdate = new DateTime(); $tommorow = new DateTime(); $tommorow->modify('+1 day'); $weekend = getUpcommingWeekend('Friday'); $start = new DateTime(); $end = new DateTime(); $end->modify('+2 days'); $cal_start = $start->format('m/d/Y'); $cal_end = $end->format('m/d/Y'); $two_weeks_later = new DateTime(); $two_weeks_later->modify('+14 days'); $detect = new Mobile_Detect; if(!$detect->isMobile()) $device = 'desktop'; else if($detect->isMobile() && !$detect->isTablet()) $device = 'phone'; else $device = 'tablet'; $weekend = getUpcommingWeekend('Friday', true); $currentTime = new DateTime(); $day_start = 2; // Sets the time when content for new date starts to be displayed. if($currentTime->format('G') < $day_start) { $currentTime->modify('-1 day'); $displayTomorrow = true; } $featuredDate = $currentTime->format('Y-m-d'); ?> Things to Do in Las Vegas Tonight: Events, Concerts, Shows, Clubs