當前位置:編程學習大全網 - 電腦編程 - 編程動態標題

編程動態標題

給妳壹個想法:

import org . Apache . commons . lang . time . dateformatutils;

導入Java . util . date;

string current month = dateformatutils . format(new Date()," MM ");//當前月份

string current year = dateformatutils . format(new Date(),“yyyy”);//當前年份

string current day = dateformatutils . format(new Date(),“DD”);//今天

  • 上一篇:rapid指令判斷字符串是否相等
  • 下一篇:UG如何調整安裝的判斷精度
  • copyright 2024編程學習大全網