Alga.js
  • Introduction
  • Installation
  • Array
    • $.array.insert
    • $.array.update
    • $.array.destroy
    • $.array.select
    • $.array.hidden
    • $.array.search
    • $.array.filter
    • $.array.paginate
    • $.array.sort
    • $.array.setOperations
    • $.array.sum
    • $.array.calculate
  • Object
    • $.object.remove
  • String & Char
    • $string.split
    • $.char.random
  • Number (Int & Float)
    • $.number.calc
    • $.number.currency
  • Date
    • $.date.now
    • $.date.format
    • $.date.parse
    • $.date.days
    • $.date.weeks
    • $.date.months
    • $date.calendar
Powered by GitBook
On this page

Was this helpful?

  1. Date

$.date.now

Now method of date helpers

To get current date or date in right now, we can use now method with/without date format on the argument. This now method is the same as Date.now() or new Date().toString().

// without an argument
$date.now()
//=> Sun Apr 04 2021 11:21:14 GMT+0700

// with date format in argument
$date.now('DD-MM-YYYY')
//=> 04-04-2021
Previous$.number.currencyNext$.date.format

Last updated 3 years ago

Was this helpful?