[R] Keep date, strip time?

Mark Knecht markknecht at gmail.com
Tue Feb 8 20:40:12 CET 2011


On Tue, Feb 8, 2011 at 11:30 AM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:
> Try as.Date() with a suitable format (it only knows about internationally
> standard formats), e.g. maybe you mean
>
>> as.Date("6/10/2009 10:04:00 AM", format="%m/%d/%Y")
>
> [1] "2009-06-10"
>

Thank you!

- Mark



More information about the R-help mailing list