to_date function modified to return timestamp object

by Amul Sul <sul_amul@yahoo.co.in>