Well I took a leap on my own and came up with this
function wemagazine_datecheck() {
$post_date = the_date('Ymd','','',FALSE);
// We gathered original date from the post, let's strip it down so we can use it
$post_year = substr($post_date,0,4); // Years stripped. 0 from left, 4 chars max
$post_month = substr($post_date,4,2); // Months stripped. 5 from left, 2 chars max
$post_day = substr($post_date,6,2); // Months stripped. 7 from left, 2 chars max
// Now we need to gather info for the current date.
$current_date = date('Ymd');
// Great, let's strip down the current date. We can just copy, paste, modify the top one!
$current_year = substr($current_date,0,4); // Years stripped. 0 from left, 4 chars max
$current_month = substr($current_date,4,2); // Months stripped. 5 from left, 2 chars max
$current_day = substr($current_date,6,2); // Months stripped. 7 from left, 2 chars max
// Let's turn them into usable strings
$post_usage = $post_year . $post_month . $post_day;
$current_usage = $current_year. $current_month . $current_day;
$difference = $current_usage-$post_usage;
echo $difference;
}
?>