Time conversion problem

  • Thread starter Thread starter New Devil
  • Start date Start date
N

New Devil

hi all,
I want to add minutes in a time which is already in string
format.
string time="12:30"; Now add 30 minutes in it how to do
that??
plz help.....
Regards,
Ibrahim
(e-mail address removed)
 
New Devil said:
I want to add minutes in a time which is already in string
format.
string time="12:30"; Now add 30 minutes in it how to do
that??

Parse the string into a DateTime, then add a TimeSpan to it, and then
reformat it to a string.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top