Add function that converts date string to unix timestamp