how to use Date