Hi,
You can use:
echo date("Y-m-d",$product->$key);
In the order view you can find this kind of code:
if(hikashop_level(2) && !empty($this->fields['item'])){
foreach($this->fields['item'] as $field){
$namekey = $field->field_namekey;
if(!empty($product->$namekey) && strlen($product->$namekey)){
echo '<p class="hikashop_order_item_'.$namekey.'">'.$this->fieldsClass->getFieldName($field).': '.$this->fieldsClass->show($field,$product->$namekey).'</p>';
}
}
}
I think that you can adapt in for your needs. As you can see it's $product->$namekey which is used instead of $row->namekey.