Creating datetime from code.