Added parameter to vdate(..,$function ) to pass function to process date, by default used 'date'