I get the latest posts this way:
$args = array( 'numberposts' => '2' );
$recent_posts = wp_get_recent_posts( $args );
Then I loop through them and get information about the post this way:
$recent_posts[0]["post_title"]
How can I get the date the post was published?