<div dir="ltr">You can also try:<div><br></div><div>DT[,start:=as.Date(start)][,end:=as.Date(replace(end,<a href="http://is.na">is.na</a>(end), "2000-01-01"))]<br></div><div><br></div><div>If you want to modify the original data table.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 September 2014 08:58, Frank S. <span dir="ltr"><<a href="mailto:f_j_rod@hotmail.com" target="_blank">f_j_rod@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr"><p>Gabor, many thanks for your answer!!</p>                                         </div></div>
<br>_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br></blockquote></div><br></div>