MM/DD/YYYY is a DATE format mask. Since your function returns a NUMBER it sounds obvious that it won't work.
Furthermore, what do you mean exactly by
output to be displayed as MM/DD/YYYY - MM/DD/YYYY : HH:MI
Do you want two dates in one field?
Do you want the time elapsed between two dates...?