Refactored the code for timestamp and datetime parameters (added as -dt and -ts parameters)