fixed spacing on date function