Using Date() instead of string