<!--showdate.jsp文件代码-->
<%@page contentType="text/html; charset=GB2312"%>
<%@page language="Java" import="java.util.*"%>
<%
Calendar calendar=Calendar.getInstance();
Date trialTime = new Date();
calendar.setTime(trialTime);
int year=calendar.get(Calendar.YEAR);
int month=1 + calendar.get(Calendar.MONTH);
int day=calendar.get(Calendar.DAY_OF_MONTH);
%>
今天是 <%=year%> 年 <%=month%> 月 <%=day%> 日
获取服务器的时间
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Vue 学习笔记简写
一.Vue文件內容 <template> </template> <script> </script> <style> </style>
原創
2024-05-13 21:42:40
为什么阿里不建议用excutors创建线程池
原創
2024-05-14 02:07:06
Java游戏服务器3
osc_hwc3munb
2024-05-14 02:04:28
Android内存管理机制官方详解文档
osc_51airx3z
2024-05-14 00:37:42
OSS_PIPE:Rust编写的大规模文件迁移工具| 京东云技术团队
原創
2024-05-13 23:59:27
面试官:说说你对序列化的理解
osc_61miaq6u
2024-05-13 22:58:28
JAVA基础之常用类(一)String
osc_6mbnx553
2024-05-13 22:07:29
消费者太多!RocketMQ又炸了!
原創
2024-05-13 12:34:50
从XML配置角度理解Spring AOP
原創
2024-05-13 11:31:09
有点意思的 Java 递归调用
原創
2024-05-13 02:41:48
Spring Boot3,启动时间缩短 10 倍!
原創
2024-05-13 02:20:47
cheerp 编译器之通用计算模块ccm1
原創
2024-05-12 21:53:46
springboot启动配置文件加载过程
原創
2024-05-12 10:56:20
通义灵码企业版正式发布,满足企业私域知识检索、数据合规、统一管理等需求
原創
2024-05-11 21:15:01