当前位置:网站首页>Date增加天数
Date增加天数
2022-04-23 05:38:00 【wyazyf】
date增加指定天数
private Date addDate(Date date,int i){
Calendar calendar = new GregorianCalendar();
calendar.setTime(date);
calendar.add(calendar.DATE,i); //把日期往后增加i天,整数 往后推,负数往前移动
date=calendar.getTime(); //这个时间就是日期往后推i天的结果
return date;
}
版权声明
本文为[wyazyf]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wyazyf/article/details/120904830
边栏推荐
- 可執行程序執行流程
- Common interview questions - 4 (MySQL)
- Reading notes of modern methods of C language programming
- The main difference between pointer and reference
- Golang implements Ping connectivity detection case through exec module
- Linear sieve method (prime sieve)
- Relative reference and absolute reference of Excel
- STL function library
- Use of qwbengneview and qwebchannel.
- [machine learning] scikit learn introduction
猜你喜欢

Fletter next generation graphics renderer impaller

C, class library

弘玑微课堂 | Cyclone RPA之“灵活的数字员工”执行器

Use of qwbengneview and qwebchannel.

转置卷积(Transposed Convolution)

(11) Vscode code formatting configuration

Radar equipment (greedy)
![[untitled] Notepad content writing area](/img/0a/4a3636025c3e0441f45c99e3c67b67.png)
[untitled] Notepad content writing area

STL learning notes 0x0001 (container classification)

The 8th Blue Bridge Cup 2017 - frog jumping cup
随机推荐
Membarrier (personal learning and understanding)
The 8th Blue Bridge Cup 2017 - frog jumping cup
Flutter 新一代图形渲染器 Impeller
STL learning notes 0x0001 (container classification)
Parsing of string class intern() method
‘EddiesObservations‘ object has no attribute ‘filled‘
MDN文档里面入参写法中括号‘[]‘的作用
The address value indicated by the pointer and the value of the object indicated by the pointer (learning notes)
Why can't V-IF and V-for be used together
C, class library
Flutter 新一代圖形渲染器 Impeller
Add two pointers? (legal or illegal)
[no title] Click the classification jump page to display the details
what is wifi6?
SQL语句简单优化
【华为机试】考试得分总数(如何处理答错的情况?回溯一次,代表答错一题)
MySQL创建oracle练习表
If I am PM's performance, movie VR ticket purchase display
[machine learning] scikit learn introduction
Simple and basic use of switch and if