format datetime for CustomAction.pm