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 7562823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:30:31+00:00 2026-05-30T13:30:31+00:00

Relatively new Windows Phone developer here, looking for some help. Basically I’m messing around

  • 0

Relatively new Windows Phone developer here, looking for some help. Basically I’m messing around with an app that I’m looking to eventually put on the marketplace.

Basically the app is counting down to a specific date, I’ve got the countdown working with no problems, however i do have a problem with the date format as I’m in the UK and the date format is dd/MM/yyyy whereas the states is MM/dd/yyyy. So the app goes into negative figures for anyone in the US. Basically i need help with some sort of workaround, whether it’s setting a universal date format for my app or something like that. Here is the code for the countdown:

        DateTime startDate = DateTime.Now;
        var launch = DateTime.Parse("01/08/2012 00:00:00 AM");
        TimeSpan t = launch - startDate;

        Countdown.Text = string.Format("\r {0}\r Days \r {1}\r Hours \r {2}\r Minutes \r {3}\r Seconds", t.Days, t.Hours, t.Minutes, t.Seconds);
  • 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-30T13:30:32+00:00Added an answer on May 30, 2026 at 1:30 pm

    If you’re hard-coding the date, then you should use the DateTime(int,int,int) constructor, rather than parsing it from a string. The three parameters would always be interpreted as year, month, day (in that order).

    var launch = new DateTime(2012, 08, 11);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a windows phone app that consist of a pivot control, and I
I need help in displaying HTML File in webbrowser in Windows phone 7 app.
I'm relatively new to Windows Phone 7 development, so bear with me on this.
I'm relatively new to the Windows Server world (coming from *nix land). I'm used
I'm developing a Windows Phone application . I have defined this on App.xaml: <nav:UriMapping
I am new in windows phone , Now am doing a sample just trying
Working wth live tiles in my Windows Phone 7 app and it's working quite
First post here, sorry for starting with asking questions. In my Windows Phone 7
I am relatively new to WPF, and some things with it are quite foreign
I am developing a windows phone 7 application. I am new to windows phone

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.