Liferay 6.1 dynamic data list in velocity
===

I build some custom views for DDL. For text type fields i'd iterate through records and display just like below:

    $record.getField("field_name").getValue()

This won't work for the date field. I presume I should use getRenderedValue(themeDisplay) method instead of getValue()

I can access themeDisplay in velocity markup through request.get("theme-display"),
however if i set it as variable and pass as argument to getRenderedValue method I get no result

Is this the right way to do it? Whats the best practice to obtain themeDisplay in velocity markup? 