Curl Global Community

Full Version: DateFieldのフォーマット
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

こんにちわ。
DateFieldのデータ表示で、"mm/dd/yyyy"というフォーマットにて表示したいのですが、どのようにするのが一番シンプルでしょうか?

よろしくお願いいたします。


Locale を"en"に指定してあげればいけますよAngel
{DateField
value = {DateTime.date},
locale = {Locale "en"}
}
{DateField date-format-spec = "mdy"}
DateTime クラスから取得するときも、locale-date というプロパティを使えばよさそうですね。

Code:
{let d:DateTime = {DateTime}}
{value d.info.locale-date}


ただ、これは、現在のロケールが特定のロケール(jaなど)以外だとダメですが・・・。