Tag: days
How to Add / Subtract Days, Months or Years from a Date in C++
In this article we will discuss how to add or subtract days, months & Years from a date object. Add / Subtract Days from a Date For example, if current date is 21 March 2016. Then subtracting 100 days from this date will make the date 12 Dec 2015 Advertisements For this we will use …
How to Add / Subtract Days, Months or Years from a Date in C++Read More
Python: Get difference between two dates in days
In this article, we will discuss how to get the difference between two dates in days in python. Python provides a module datetime for manipulation of date and time. It consists of following classes, datetime.date : An object of date class specifies a date using year, month and day datetime.time : An object of time …
Add days to a date in Python
In this article, we will discuss different ways to add days to a given date in python. Suppose we have a date ’21/1/2021′ and we want to add N days to it and N can be 1, 10, 100 or any other number. We want the final date after adding N days in the given …
How to subtract days from a date in Python?
In this article, we will discuss different ways to subtract days from a given date in python. Suppose we have a date ’21/1/2021′ and we want to subtract N days to it and N can be 1, 7, 300 or any other number. We want the final date after subtracting N days from the given …
Check if Date is Older than 30 Days in Python
This tutorial will discuss about a unique way to check if date is older than 30 days in Python. Suppose we have a date in string format like this, dateStr = ‘2023-02-16’ Now we want to check if this date is older than the 30 days or not. Advertisements We have created a generic function …
Check If Date is Within 7 Days in Python
This tutorial will discuss about a unique way to check if date is within 7 days in Python. Many times we encounter a scenario where a date is given, and we want to check if the given date is within the last 7 days or not. We have created a generic method to check if …
JavaScript: Add Days to a Date
While working with dates in JavaScript, we often need to change the dates, like adding or subtracting days to date before processing it. While adding days to a date, we expect the month and year values to be incremented accordingly depending on the number of days being added. This article will discuss practical ways to …
Glo TikTok Plan Code 2023| Buy 30 Days Data Bundle
Learn how to buy the Glo TikTok plan and subscribe to the TikTok data bundle on Glo. Enjoy unlimited access to TikTok features at affordable rates. Step-by-step activation instructions are provided. This post is about the Glo TikTok plan, which allows you to watch TikTok videos without using up all your data. TikTok is a …
MTN 300 for 2GB Code 2023 | 7 Days, Weekly Plan
Get the latest MTN 300 for 2GB code for 7 days with our updated guide. Learn how to subscribe, check your balance, and use this social data plan for TikTok at an affordable price. Stay connected with MTN’s cheap data bundles and enjoy uninterrupted streaming and content creation on TikTok. This post provides information about …
MTN 300 for 1GB Code for 7 Days | Activate Now!
Discover how to get 1GB for just ₦300 on MTN with the latest MTN 300 for 1GB code for 7 days. Check the eligibility and activation steps in this updated guide. Have you heard about the new MTN data plan that gives you 1GB of data for just 300 Naira? There are other similar cheap …