- Home /
how to Subtract string from TimeSpan
I want to Subtract string from TimeSpan and show that as minute and the second format
  TimeSpan difference = currentDate.Subtract(oldDate);
  PPT.text = difference.ToString(@"mm\:ss");
  PPX.text = PlayerPrefs.GetString("CountDownValue");
 timeText.text = ?????
               Comment
              
 
               
              @felonpv You seem to already have the formatting in your code, namely difference.ToString(@"mm\:ss"); (which is difference.$$anonymous$$inutes plus differences.Seconds). If that's the one you want, then assign it in the last line via timeText.text = PPT.text; 
Your answer
 
 
             Follow this Question
Related Questions
How to reset timer? (C#) 3 Answers
Create a countdown in C# (inside Coroutine) 2 Answers
Timer doesn't work properly 2 Answers
Distribute terrain in zones 3 Answers
C# countdown timer 9 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                