Rendering a CCK Date field exaclty
Solution:

$birthdate_object = date_make_date(
   $p-&gt;field_szuldat[0]['value'], 
   $p-&gt;field_szuldat[0]['timezone'],
   $p-&gt;field_szuldat[0]['date_type'],
   $granularity = array('year', 'month', 'day'));

$birthdate_formatted = date_format_date($birthdate_object, 'custom', 'Y. F j.');


This yields incorrect value in the DST period of the year (1 day difference), so very dangerous:

$wrong_birthdate = format_date($p-&gt;field_szuldat[0]['value'], 'custom', 'Y. F. d.');