Tesnet Group interview question

For example how to convert a date to number