Add helper method for parsing DateTime inside controllers