vieweditattachhistoryswikistopchangessearchhelp

日時の表示形式変更

Date >> #yyyymmdd "Date を yyyy-mm-dd 形式の文字列で吐きだす"

yyyymmdd
  "Answer the receiver rendered in standard fmt yyyy-mm-dd. Good for avoiding year 2000 bugs. The month and day numbers show leading zeros, so that for example feb 1 1996 is 1996-02-01"

  "Date today yyyymmdd"

  ^ self printFormat: #(3 2 1 $- 1 1 2)



NuSwikiPage class >> #printDate: "日付表示書式の変更"

printDate: aDate
  ^(aDate dayOfMonth asString), ' ', (aDate monthName), ' ', (aDate year asString)




printDate: aDate
  ^ aDate yyyymmdd



NuSwikiPage >> #printTime

printTime
  ^ time print24


このページを編集 (686 bytes)


Congratulations! 以下の 1 ページから参照されています。

This page has been visited 2683 times.