calendar add function convertToStrToTime and add Format to converter to timestamp