how can get latest 3 pages in wordpress

how can get latest 3 pages  in wordpress
<?php
$args=array('showposts'=>3,'post_type' => 'page','caller_get_posts'=>1);
   $my_query = new WP_Query($args);
if($my_query->have_posts() ){
  while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <p><small><?php the_time('m.d.y') ?></small> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
    <?php
  endwhile;
}
?>

how can get latest 3 post wordpress

how can get latest 3 post wordpress
<?php
 $lastestposts = get_posts('numberposts=3');
 foreach($lastestposts as $post) :
    setup_postdata($post);
 ?>
 <h2><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h2>
 <?php echo  the_content(); ?>
 <?php endforeach; ?>

how can change particular menu on wordpress

u can call particular menu id  hide function in jquery...
$('#menu-item-16').hide();

wordpress how can determine if user currently logged in or nor

<?php
$cuser = wp_get_current_user();
if ( 0 == $cuser->ID ) {
    // Not logged in.
} else {
    // Logged in.
}
?>

Jquery date of birth format

 u can use

$(".datepicker").datepicker({
    showOn: "both",
    buttonImage: "/images/calendar.png",
    buttonImageOnly: true,
    yearRange: '1910:2010',
    changeYear: true
}); or

 $( "#dob" ).datepicker({  maxDate: '0'});