⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 data.java

📁 Email营销是在用户事先许可的前提下
💻 JAVA
字号:
package com.qq.content;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DATA {	
	static public String getDateTimeStr(){
	      Date timeer = new Date(); // 取当前的时间
	      SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // 设置显示的格式
	      String msg = df.format(timeer); // msg中存放格式化后的时间字串
	      return msg;		
	}
	
	static public String getDateStr(){
	      Date timeer = new Date(); // 取当前的时间
	      SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); // 设置显示的格式
	      String msg = df.format(timeer); // msg中存放格式化后的时间字串
	      return msg;		
	}
		
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -