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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:52:21+00:00 2026-06-16T18:52:21+00:00

Possible Duplicate: C++ standard date/time class The question How can I manage dates in

  • 0

Possible Duplicate:
C++ standard date/time class

The question

How can I manage dates in C++?

By that, I mean – is there something in the standard library I can use (similar to Date/Calendar in Java), should I make my own class, or should I use some 3rd party library (îf so, which one?).

Basically, what I need is to be able to store/retrieve data related to dates (time, day, month, year, weekday) and compare date objects between them (for sorting).

What I’ve already tried

Well, I have made a simple Calendar class that mimics the behavior of Java’s Calendar class… But I’m having trouble dealing with leap years (well, that’s OK, but it messes up my week days), week days, and that kind of stuff.

I have also seen old posts (2 years+) on SO about it, but I’m wondering if there is anything more recent.

  • 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-16T18:52:22+00:00Added an answer on June 16, 2026 at 6:52 pm

    In Qt framework you found many similar Java classes.
    Also you can use in wxWidgets the wxCalendarCtrl class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Is there a standard date/time format that can be passed on a
Possible Duplicate: C++ standard date/time class I want to know how to use the
Possible Duplicate: CSV File Imports in .Net In .net, is there a standard library
Possible Duplicate: How to access a standard-library module in Python when there is a
Possible Duplicate: Is there a standard sign function (signum, sgn) in C/C++? I mean
Possible Duplicate: GCC linker can’t find standard library? I am trying to mess with
Possible Duplicate: Interface/enum listing standard mime-type constants Is there an enum (or something similar)
Possible Duplicate: Why there is not a comprehensive c archive network? Everyone knows that
Possible Duplicate: Dates before January 1st, 1970 I'm looking for a standard solution for
Possible Duplicate: Is there a standard function to check for null, undefined, or blank

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.