A typical solution using the standard date formatting params is date '+%Y-%m-% d-%H-%M-%S'. Not sure ...
stackoverflow.com