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é
 
Back
Top