write conversion of Date and POSIX to integer