This C++ library provides a collection of functions for handling date-related operations, built using object-oriented programming (OOP) principles. It simplifies date manipulations such as formatting, calculations, and comparisons.
- Get the current date
- Format date in various styles
- Add or subtract days, months, or years
- Compare dates
- Calculate the difference between two dates
- Validate a given date
- Convert between different date formats ...etc
To use this library in your C++ project:
- Clone the repository or download the source files.
- Include the necessary header file in your C++ program.
- Compile and link the library with your project.
#include "Date.h"
Here is an example of how to use the library:
#include <iostream>
#include "Date.h"
using namespace std;
int main()
{
clsDate Date1;
Date1.Print();
clsDate Date2("31/1/2022");
Date2.Print();
clsDate Date3(20, 12, 2022);
Date3.Print();
clsDate Date4(250, 2022);
Date4.Print();
Date1.IncreaseDateByOneMonth();
Date1.Print();
return 0;
}
- A C++ compiler (GCC, Clang, MSVC, etc.)
- Total Functions: 75
- Total Lines of Code: 1,104
Feel free to contribute by submitting pull requests, reporting issues, or suggesting new features.
This project is licensed under the MIT License - see the LICENSE file for details.
Developed by Chiheb Abiza
For any inquiries, feel free to reach out:
- Email: [email protected]
- GitHub: chihebabiza
- LinkedIn: @ChihebAbiza
This project is open source and welcomes contributions from the community!