add some comments and function to get current date in mysql format