date client side hook.