Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3485068
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:51:47+00:00 2026-05-18T10:51:47+00:00

I noticed today that in my twitter app on WP7, the twits are shown

  • 0

I noticed today that in my twitter app on WP7, the twits are shown and their times are listed. But, here is what I really liked:

If a twit was made in the last few seconds, the listbox item displays for eg. 5 secs ago.
If it was made in last few mintues, it shows for eg. 23 min ago.
Same way, shows the word today
If it was on any prior dates, it shows the actual date time.

This type of formatting would apply to any platform (Outlook does similar things). Has anyone written an extension method or a helper function that they can share to achieve this kind of output?

Thanks,
Pratik

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T10:51:48+00:00Added an answer on May 18, 2026 at 10:51 am

    Scott Mitchell had an article featured on the homepage of http://www.asp.net the other day which covered formatting dates.

    The article was a pretty standard run through of the various formatting strings you can use but about two thirds in he discusses a custom method he has created to solve this kind of problem called .ToRelativeDateString(). The implementation is included in the downloadable sample attached to the article:

    • https://web.archive.org/web/20211020131217/https://www.4guysfromrolla.com/articles/111010-1.aspx
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to sign-up Twitter today and I noticed that their registration form
I ran my app through Instruments today and noticed that an excessively high amount
I've been using Javascript's Date for a project, but noticed today that my code
I use capistrano to deploy my rails app. Today I noticed that it failed,
I noticed today that haml & sass have split in their upgrade to 3.1.
I noticed today that I can't use * to pass width or precision arguments
I am relatively new to C#, and I noticed something interesting today that I
Today I noticed that now when I Ctrl+/ one or more lines in Eclipse
I was playing around with some Javascript snippets today and noticed that this code
Just today I noticed on our Wordpress blog that the Facebook iframe is showing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.