We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Time Conversion
- Discussions
Time Conversion
Time Conversion
Sort by
recency
|
337 Discussions
|
Please Login in order to post a comment
I think one approrach to use Javascript string split.
Java
C# Code
public static string timeConversion(string s) { var time = DateTime.Parse(s); return time.ToString("HH:mm:ss"); }
I tried the most manual approach to do these. I am not sure if these the best way to do it . PLease someone try and lets discuss if these is an acceptable answer for interviewer or not . string timeConversion(string s) { vector result; stringstream ss(s); string strToken;
}