format dateTime '06/08/2003 12:00' to '1 day ago'

  • Thread starter Thread starter Ted
  • Start date Start date
T

Ted

I would like to format my date "06/08/2003 12:00" to something like "1 day
ago" or "24 hours ago". Is there a date format I can use to do this or does
anyone have any pointers as to how i could do this.

Any help much appreciated
Thanks
Ted
 
You can use DateTime.Parse passing your string.
Then you can substract 1 day

José
 

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