Finished gen_post_date() function