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

  • Home
  • SEARCH
  • 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 8372203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:22:02+00:00 2026-06-09T14:22:02+00:00

So tonight I asked a question about storing date time formats in the Application

  • 0

So tonight I asked a question about storing date time formats in the Application Settings system of .NET. The answer I got makes sense but got me thinking about another situation.

This is only hypothetical, I may not find myself in need of using this but it would be interesting to know what the common answer is.

It seems the Settings system converts a datetime into the “The General Date Long Time (“G”)” format (see Standard Date and Time Format Strings on MSDN) which is fine if that is all you want but what if you want to store a value using the “The Round-trip (“O”, “o”)” format?

As far as I can see at the moment you would need to store that as a string and parse it yourself. Is that the only way when using the designer?

  • 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-06-09T14:22:03+00:00Added an answer on June 9, 2026 at 2:22 pm

    The fastest and most efficient way of losslessly serializing a DateTime is using the ToBinary and FromBinary methods.

    settings.Timestamp = date.ToBinary();
    // ...
    DateTime date = DateTime.FromBinary(settings.Timestamp);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I've been reading quite a bit about Unicoding tonight because I was thinking
I had this question asked of me on Monday and for the life of
Tonight I decided I'd try to build a simple Node.js application using Express on
Does VB.NET have LINQ support? I was discussing VB vs C# tonight and I
I just started experiment with EC2 tonight, and got a server running locally. I
I have a small rails app I got all gung-ho on tonight wanting to
I installed Ada and AWS on a Macbook for the first time tonight. Everything
Last question for tonight, still using Coldfusion8 and MySQL. I have a table with
I went to a .NET user group meeting tonight, and part of it revolved
Last question for tonight, I promise. These pointers are giving me a serious headache.

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.