added stupid date function.