• Skip to primary navigation
  • Skip to content
  • Skip to footer
Never test
  • About
  • Categories
  • Tags
    Luxon formatting to 2020-08-21 AM 9:19:11
    1. Home
    2. /
    3. It
    4. /
    5. Luxon formatting to 2020-08-21 AM 9:19:11
    YoungSeon.Ahn

    YoungSeon.Ahn

    I am an ordinary person.

    • S.Korea
    • Twitter
    • Facebook
    • GitHub
    • Resume
    • Email

    Luxon formatting to 2020-08-21 AM 9:19:11

    less than 1 minute read

    Luxon is a small version of Moment. Let’s get it.

    const DateTime = luxon.DateTime;
    const date = DateTime.fromISO('2020-08-20 16:00:11.727')
    const newDate = date.toFormat('yyyy-MM-dd a h:mm:ss')
    console.log(newDate) // 2020-08-20 PM 4:00:11
    

    That’s all.

    Tags: JavaScript

    Categories: IT

    Updated: August 20, 2020

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    Leave a comment

    You may also enjoy

    import 한 줄이 e2e test 를 깨뜨리다

    4 minute read

    기술 스택

    e2e exposed an init order race

    5 minute read

    Tech stack

    HTML 테이블에서 “일부 컬럼만 가변폭” 만들기 — min-width가 안 먹힐 때

    2 minute read

    목표

    Making Only Some Columns Flexible-Width in an HTML Table — When min-width Just Won’t Work

    3 minute read

    Goal

    • Follow:
    • Twitter
    • Facebook
    • GitHub
    • Feed
    © 2026 Never test. Powered by Jekyll & Minimal Mistakes.