[BlackBerry10] Allow any numeric type as date in dateToString method.