One of the columns in my data frame is a character which has the following format (an example):

2013-02-05 08:00:00

Some of the rows are NULL in this column. I want to change the class to date format but I am getting NA for all rows. 

Could you please tell me what should I do to make it work?