LoginSignup
6
6

More than 5 years have passed since last update.

Titaniumでdate.jsを使う

Posted at

標準のDateライブラリが使いにくいので便利なdate.jsをTitaniumで使う。
date.jsをダウンロードしてResourcesディレクトリ以下に配置して以下のとおり。

app.js
require('date');
Date.today(); //=> 2012-04-07 15:00:00 +0000
Date.tomorrow(); //=> 2012-04-08 15:00:00 +0000
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6