Home Whiteboard Graphing Calculator Online Compilers Articles Tools

Explore Categories

Find the perfect tutorial for your learning journey

Python TechnologiesDatabasesComputer ProgrammingWeb DevelopmentJava TechnologiesComputer ScienceMobile DevelopmentBig Data & AnalyticsMicrosoft TechnologiesDevOpsLatest TechnologiesMachine LearningDigital MarketingSoftware QualityManagement Tutorials View All Categories
Tutorials Courses Jobs Login
MomentJS Tutorial
  • MomentJS - Home
  • MomentJS - Overview
  • MomentJS - Environment Setup
  • MomentJS - Introduction
  • MomentJS - Parsing Date And Time
  • MomentJS - Date Validation
  • MomentJS - Getter/Setter
  • Manipulate Date And Time
  • Formatting Date And Time
  • MomentJS - Date Queries
  • MomentJS - Internationalization
  • MomentJS - Customization
  • MomentJS - Durations
  • MomentJS - Utilities
  • MomentJS - Plugins
  • MomentJS - Examples
    • MomentJS - Quick Guide
    • MomentJS - Cheatsheet
    • MomentJS - Useful Resources
    • MomentJS - Discussion
    Selected Reading
    • UPSC IAS Exams Notes
    • Developer's Best Practices
    • Questions and Answers
    • Online Resume Builder
    • HR Interview Questions
    • Computer Glossary
    • Who is Who
Home Momentjs MomentJS - Array

MomentJS - Array



Previous
Quiz
Next

A moment can be created with input as an array and the values passed in the array to be same as how we would pass to new Date() JavaScript object.

Syntax

moment(Number[]);

Example

var day = moment([2018,10,08, 10, 30,40]);

Output

Array
momentjs_parsing_date_and_time.htm
Previous Quiz Next
Advertisements
  • ABOUT US
  • OUR TEAM
  • CAREERS
  • JOBS
  • CONTACT US
  • TERMS OF USE
  • PRIVACY POLICY
  • REFUND POLICY
  • COOKIES POLICY
  • FAQ'S
tutorials point logo
Download Android App Download IOS App

Tutorials Point is a leading Ed Tech company striving to provide the best learning material on technical and non-technical subjects.

Copyright 2026. All Rights Reserved.