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
You can use String.Format:
DateTime d = DateTime.Now; string str = String.Format("{0:00}/{1:00}/{2:0000} {3:00}:{4:00}:{5:00}.{6:000}", d.Month, d.Day, d.Year, d.Hour, d.Minute, d.Second, d.Millisecond); // I got this result: "02/23/2015 16:42:38.234"