Bug fix - date function month starts with 0