output datetime from the input parameter.