I have a value stored in variable of type System.TimeSpan
as follows.
System.TimeSpan storedTime = 03:00:00;
Can I re-store it in another variable of type String
as follows?
String displayValue = "03:00 AM";
And if storedTime
variable has the value of
storedTime = 16:00:00;
then it should be converted to:
String displayValue = "04:00 PM";
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…