Add date function.
Fix check version function.