• 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

    iPadOS Safari ReferenceError: Can’t find variable: Notification

    1 minute read

    현상

    iPadOS Safari ReferenceError: Can’t find variable: Notification

    1 minute read

    Symptom

    lefthook 동작 원리 — linked worktree 에서 install 하면 안 되는 이유

    1 minute read

    환경

    How lefthook works — why you should never run install in a linked worktree

    1 minute read

    Environment

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