added getDateTime function on the client side