Stared using function argument in date