I have a WP8 app, which will send the current time to a web service.
I get the datetime string by calling
DateTime.ToString(\"MM/dd/yyyy HH:mm:ss.ff
Convert Date To String
Use name Space
using System.Globalization;
Code
string date = DateTime.ParseExact(datetext.Text, "dd-MM-yyyy", CultureInfo.InstalledUICulture).ToString("yyyy-MM-dd");