Trovato!!!
Il problema stava nel fatto che utilizzavo la funzione di WP the_date() (pensata per visualizzare una data) invece della funzione get_the_date() che invece recupera semplicemente il valore.
Ora funziona.
Il codice corretto se qualcuno vuole riutilizzarlo quindi è questo:
<?php $ultimo= (int) (date("Ymd", strtotime(get_lastpostmodified())));?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><h1><?php the_title() ?></h1></a>
<?php $data= (int) date(get_the_time(Ymd));
if ($data == $ultimo) the_content();
else{
the_excerpt();?>
<p><a href="<?php the_permalink() ?>" class="continue">Continua a leggere questa roba qua »</a></p>
<?php } ?>
Saluti