Pass the Time format through the function call instead of using 'long' and 'short' strings to change it