Updated vdate() view function, now it supports numeric and string date values