printing upto date statement

Need some help?