php code

<?php global $post; $args = array( ‘numberposts’ => 3, ‘category’ => 1 ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?>

<div class=”newstitle”><?php the_title(); ?></div><div class=”newsdate”><?php the_date(‘d-m-y’:wink:; ?></div>

<div class=”newsinfo”>ID) . ‘”><?php echo excerpt(30); ?></div>

<?php endforeach; ?>

is there somthing wrong with that code?

it dosent return the date on the 2nd post… the first and the last however it does fine