<!--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%> 日
獲取服務器的時間
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
WPF應用實戰開發指南 - 如何結合阿里矢量圖標庫使用Geometry圖標?
界面開發小八哥
2024-04-28 11:35:52
前端面試題 - NodeJS能用ES6模塊嗎?CommonJS 和 ES6模塊的區別是什麼?
原創
2024-04-24 23:51:06
1 名工程師輕鬆管理 20 個工作流,創業企業用 Serverless 讓數據處理流程提效
原創
2024-04-28 21:12:22
Java word通過html設置樣式(Spire Docx)
Java word通過html設置樣式(Spire Docx) <dependencies> <!-- Apache POI dependency for Word --> <dependency>
原創
2024-04-26 23:42:09
從零開始學架構V2-初識架構設計-1
原創
2024-04-25 23:56:25
高德地圖爬蟲實踐:Java多線程併發處理策略
原創
2024-04-25 23:26:44
三十分鐘入門基礎Go(Java小子版)
原創
2024-04-25 23:17:43
流水線運行出錯排查難?AI 來幫你
原創
2024-04-24 21:12:07
西安站開營!AI 編碼助手通義靈碼幫大學生“整活兒”
原創
2024-04-24 21:12:06
「Java開發指南」如何利用MyEclipse啓用Spring DSL?(二)
原創
2024-04-24 11:35:31
利用HttpClient庫下載螞蜂窩圖片
原創
2024-04-23 23:24:51