I have a Time instance curr_time with the value of Time.now and another String target_date with the value, say, "Apr 17, 2010". How do I get the date part in the variable curr_time change to the value of target_date ?
>> curr_time => Sun Feb 21 23:37:27 +0530 2010 >> target_date => "Apr 17, 2010"
I want curr_time to change like this:
>> curr_time => Sat Apr 17 23:37:27 +0530 2010
How to achieve this?