define the local position and change the date format style