What is the proper way to convert long time (tickcount) format to a readable date format and from date format back to long time format?

thanks in advance