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 - As Array

MomentJS - As Array



Previous
Quiz
Next

This method will return the params in array form and the values in it will be same as we get for new Date().

Syntax

moment().toArray();

Example

var a = new Date();
var b = moment().toArray();

Output

As Array
momentjs_formatting_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.