当前位置:网站首页>实体中增加操作方法
实体中增加操作方法
2022-07-30 18:38:00 【yuhui66666688gfbfdy】
实体中的属性get方法可以自己增加以获得加工后的结果
public String getDay(){
return this.createTime.substring(0,10);
}
public String getMonth(){
return this.createTime.substring(0,7);
}
public String getYear(){
return this.createTime.substring(0,4);
}
边栏推荐
- Application of time series database in the field of ship risk management
- 【每日一道LeetCode】——191. 位1的个数
- DM8:单库单实例搭建本地数据守护服务
- [Use of Qt Designer tool]
- ESP8266-Arduino编程实例-DS18B20温度传感器驱动
- 【AGC】构建服务1-云函数示例
- The use of terminal split screen tool Terminalx
- Codeblocks + Widgets create window code analysis
- MySQL——基础知识
- 单例模式 (Singleton)
猜你喜欢
CCNA-子网划分(VLSM)
【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?
基于inquirer封装一个控制台文件选择器
Read the "Language Model" in one article
Codeblocks + Widgets 创建窗口代码分析
DTSE Tech Talk丨第2期:1小时深度解读SaaS应用系统设计
Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"
ESP8266-Arduino编程实例-HC-SR04超声波传感器驱动
MySQL数据类型
Quickly build an e-commerce platform based on Amazon cloud technology serverless service - performance
随机推荐
kotlin的by lazy
高精度加法
攻防世界web-Cat
开心的聚餐
还有三天忙完
卫星电话是直接与卫星通信还是通过地面站?
深化校企合作 搭建技术技能人才成长“立交桥”
Two-point answer naked question (plus a little pigeonhole principle)
[Use of Qt Designer tool]
"Ruffian Heng Embedded Bimonthly" Issue 59
【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
【总结】1396- 60+个 VSCode 插件,打造好用的编辑器
二分答案裸题(加一点鸽巢原理)
【每日一道LeetCode】——191. 位1的个数
After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
Codeblocks + Widgets 创建窗口代码分析
What is the value of biomedical papers? How to translate the papers into Chinese and English?
kotlin by lazy
【Swords Offer】Swords Offer 17. Print n digits from 1 to the largest
经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法