import nsdate + functions