Date conversion in R, to convert dataset for time series analysis using xts

Can you provide a reproducible example?