Forum Replies Created

Viewing 1 replies (of 1 total)
  • If you want to display just the year change this code:

    $str .= '"Birthday='.$node->born.'",'."\n";
     if (!empty($node->died) && $node->died != '-') {
      $str .= '"Deathday='.$node->died.'",'."\n";
     }

    to this code:

    $str .= '"Birthday='.substr($node->born, 0, 4).'",'."\n";
     if (!empty($node->died) && $node->died != '-') {
      $str .= '"Deathday='.substr($node->died, 0, 4).'",'."\n";
     }
Viewing 1 replies (of 1 total)