Added methods to get formatted datestring, prepare to implement socket