• 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

    잘 돌아가던 Playwright e2e test가 전부 깨지는 건에 대하여

    1 minute read

    환경

    Node 25에서 vitest 4와 js-dom 6.9.1 연결하는 삽질기

    4 minute read

    Node 25에서 vitest 4와 js-dom 6.9.1 연결하는 삽질기

    Chrome DevTools MCP: Network.enable timed out 해결기

    2 minute read

    [Troubleshooting] Chrome DevTools MCP: “Network.enable timed out” 해결기

    Yarn Monorepo 환경에서 vite-tsconfig-paths 경로 해석 문제 해결(feat. AI)

    1 minute read

    배경 및 문제 상황

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