Ok, I figured it out (and it was pretty straightforward...). Posting one of my overloads in case anyone else runs into this question.
public static string DatePickerFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper,Expression<Func<TModel, TProperty>> expression)
where TModel : class
{
var inputName = ExpressionHelper.GetExpressionText(expression);
return htmlHelper.DatePicker(inputName);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…