day.js.org Open in urlscan Pro
2606:4700:20::ac43:4940  Public Scan

URL: https://day.js.org/docs/en/parse/now
Submission: On April 08 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

DAY.JS

 * 
 * Docs
 * GitHub
   English
    * 中文
    * Русский
    * Help Translate


›PARSE




INSTALLATION

 * Installation
 * Node.js
 * Browser
 * Typescript
 * Download


PARSE

 * Parse
 * Now
 * String
 * String + Format
 * Unix Timestamp (milliseconds)
 * Unix Timestamp (seconds)
 * Date
 * Object
 * Array
 * UTC
 * Dayjs Clone
 * Validation


GET + SET

 * Get + Set
 * Millisecond
 * Second
 * Minute
 * Hour
 * Date of Month
 * Day of Week
 * Day of Week (Locale Aware)
 * ISO Day of Week
 * Day of Year
 * Week of Year
 * Week of Year (ISO)
 * Month
 * Quarter
 * Year
 * Week Year
 * Week Year (ISO)
 * Weeks In Year (ISO)
 * Get
 * Set
 * Maximum
 * Minimum


MANIPULATE

 * Manipulate
 * Add
 * Subtract
 * Start of Time
 * End of Time
 * Local
 * UTC
 * UTC offset


DISPLAY

 * Display
 * Format
 * Time from now
 * Time from X
 * Time to now
 * Time to X
 * Calendar Time
 * Difference
 * Unix Timestamp (milliseconds)
 * Unix Timestamp
 * Days in Month
 * As Javascript Date
 * As Array
 * As JSON
 * As ISO 8601 String
 * As Object
 * As String


QUERY

 * Query
 * Is Before
 * Is Same
 * Is After
 * Is Same or Before
 * Is Same or After
 * Is Between
 * Is a Dayjs
 * Is Leap Year


I18N

 * i18n
 * Loading locale in NodeJS
 * Loading locale in the browser
 * Changing locale globally
 * Changing locales locally
 * Checking the current Day.js locale
 * Listing the months and weekdays of the current locale
 * Accessing locale specific functionality


PLUGINS

 * Plugin
 * Loading plugin in NodeJS
 * Loading plugin in the browser
 * AdvancedFormat
 * ArraySupport
 * BadMutable
 * BuddhistEra
 * Calendar
 * CustomParseFormat
 * DayOfYear
 * DevHelper
 * Duration
 * IsBetween
 * IsLeapYear
 * IsSameOrAfter
 * IsSameOrBefore
 * IsToday
 * IsTomorrow
 * IsYesterday
 * IsoWeek
 * IsoWeeksInYear
 * LocaleData
 * LocalizedFormat
 * MinMax
 * ObjectSupport
 * PluralGetSet
 * Pre-parse / Post-format Plugin
 * QuarterOfYear
 * RelativeTime
 * Timezone
 * ToArray
 * ToObject
 * UpdateLocale
 * UTC
 * weekOfYear
 * WeekYear
 * Weekday


CUSTOMIZE

 * Customize
 * Month Names
 * Month Abbreviations
 * Weekday Names
 * Weekday Abbreviations
 * Minimal Weekday Abbreviations
 * Relative Time
 * Calendar


DURATIONS

 * Durations
 * Creating
 * Clone
 * Humanize
 * Format
 * Milliseconds
 * Seconds
 * Minutes
 * Hours
 * Days
 * Weeks
 * Months
 * Years
 * Add Time
 * Subtract Time
 * Using Duration with Diff
 * As Unit of Time
 * Get Unit of Time
 * As JSON
 * Is a Duration
 * As ISO 8601 String
 * Locale


TIME ZONE

 * Time Zone
 * Parsing in Zone
 * Converting to Zone
 * Guessing user zone
 * Set Default Timezone

Edit


NOW

Calling dayjs() without parameters returns a fresh Day.js object with the
current date and time.

var now = dayjs()


This is essentially the same as calling dayjs(new Date()).

Day.js treats dayjs(undefined) as dayjs() due to that function parameters
default to undefined when not passed in.

Day.js treats dayjs(null) as an invalid input.

← ParseString →


COMMUNITY

Gitter🇨🇳 China Mirror 中国镜像站点Sitemap
Copyright © 2021 Day.js