DRY up date formatting
JS can use #existy and #truthy
basic JS applicative functions