Added string_to_datetime method

Added string_to_datetime method to be used in stacky api
Putting it in common tools so that it can be used by others too

Change-Id: Ieca6cd140a507d9c737597ceb667aae9c59659b1
Merge "Added string_to_datetime method"