Date function added.