cast timestamp and dateString to real date object