Change thrift variable to date