You could try to parse at first the string:
DateTime dt = DateTime.ParseExact(input, "dd/MM/yyyy", CultureInfo.InvariantCulture);
where input
is the string with your date, 12/06/2014
.
Then you could get the string you want as below:
string output = dt.ToString("yyyy-MM-dd");
DateTime newDt = DateTime.ParseExact(input, "yyyy-MM-dd", CultureInfo.InvariantCulture);
For more information about DateTime.ParseExact
please look here.