public static string dateToRFC3339String(JsDate date)
        {
            if (date != null ) {
                var jsonDate = date.toJSON();
                return jsonDate.substring(0, 10);
            }

            return null;
        }