Thread Rating:
  • 306 Vote(s) - 2.63 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CDate型への変換について
03-06-2015, 05:35 PM,
#2
RE: CDate型への変換について
文字列は、CDate.value-of でいけそうですが、
デフォルトコンストラクタに渡す値はワカリマセン。


Code:
{def str = "2015-03-06"}
{def c = {CDate.value-of str}}
{Table columns = 2
    ,"String", str
    ,"time", cd.time
    ,"to-DateTime", {cd.to-DateTime}
    ,"to-GMTDateTime", {cd.to-GMTDateTime}
    ,"to-GMTString", {cd.to-GMTString}
    ,"to-LocaleDateTime", {cd.to-LocaleDateTime}
    ,"to-String", {cd.to-String}
    ,"to-String-for-GMT", {cd.to-String-for-GMT}
}


Messages In This Thread
CDate型への変換について - by Yudai-s - 03-02-2015, 08:20 PM
RE: CDate型への変換について - by umemura - 03-06-2015, 05:35 PM
Forum Jump:


Users browsing this thread:
4 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('1209')