working rgraph date conversion