Help us understand the problem. What is going on with this article?


More than 1 year has passed since last update.


var nanosecond = "1565980455";

console.log(moment(nanosecond*1000).format()); //2019-08-17T03:34:15+09:00

console.log(moment(nanosecond*1000).format('YYYY/MM/DD')); //2019/08/17
キングパンダ合同会社 代表。SEOやコンテンツマーケティングなどSEOに関する記事やその他、技術的情報を記事として更新します。各種お問い合わせもTwitter DMなどからお気軽にどうぞ! 採用動画プラットフォーム「ENLIST(エンリスト)」を運営
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away