Cast datetime args to int.