![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to manipulate Date in PowerShell?
To add/remove date from the date string you need to use AddDay() method. For example,
We need to add 6 days to the current date.
(Get-Date).AddDays(6) 25 March 2020 22:40:36
To go back to the specific number of days, the same AddDays() method will be used but the numbers are negative.
For example,
(Get-Date).AddDays(-6) 13 March 2020 22:45:34
Advertisements