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 - Unix Timestamp(milliseconds)

MomentJS - Unix Timestamp(milliseconds)



Previous
Quiz
Next

This method gives the number of milliseconds since the Unix epoch.

Syntax

moment().valueOf();
+moment();

Example 1

var a = moment().valueOf();

Output

Unix

Example 2

var a = +moment();

Output

Unix Moment
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.