Date funcionality now works