当前位置:网站首页>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
边栏推荐
- Quick app bottom navigation bar
- 3d slicer中拉直体的生成
- The main difference between pointer and reference
- Golang implements Ping connectivity detection case through exec module
- Fast application fuzzy search
- Add two pointers? (legal or illegal)
- AcWing 1096. Detailed notes of Dungeon Master (3D BFS) code
- Branch and loop statements
- IPI interrupt
- Wbpack configuring production development environment
猜你喜欢
Find the number of "blocks" in the matrix (BFS)
创建进程内存管理copy_mm - 进程与线程(九)
Generation of straightening body in 3D slicer
Excel sets row and column colors according to cell contents
Jiugong magic square - the 8th Lanqiao provincial competition - group C (DFS and comparison of all magic square types)
Hongji micro classroom | cyclone RPA's "flexible digital employee" actuator
Isosceles triangle - the 9th Lanqiao provincial competition - group C
Fast application fuzzy search
Intel SGX preliminary learning and understanding notes (continuously updated)
转置卷积(Transposed Convolution)
随机推荐
Sword finger offer II 022 The entry node of the link in the linked list
Several examples of pointer transfer, parameter transfer, value transfer, etc
STL function library
Pytorch deep learning practice_ 11 convolutional neural network
合约锁仓漏洞
Data mining -- understanding data
Qwebsocket communication
IPI interrupt
可执行程序执行流程
X86 assembly syntax: at & T and Intel
Membarrier (personal learning and understanding)
世界与个人发展
Generation of straightening body in 3D slicer
Use of qwbengneview and qwebchannel.
Golang通过exec模块实现Ping连通性检测案例
Isosceles triangle - the 9th Lanqiao provincial competition - group C
What financial products will benefit during May Day?
转置卷积(Transposed Convolution)
创建进程内存管理copy_mm - 进程与线程(九)
Usage and difference of shellexecute, shellexecuteex and winexec in QT