PHP 8.2.30
Preview: index.js Size: 980 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/date-fns/getDate/index.js

"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getDate;
var _index = _interopRequireDefault(require("../toDate/index.js"));
var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
/**
 * @name getDate
 * @category Day Helpers
 * @summary Get the day of the month of the given date.
 *
 * @description
 * Get the day of the month of the given date.
 *
 * @param {Date|Number} date - the given date
 * @returns {Number} the day of month
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // Which day of the month is 29 February 2012?
 * const result = getDate(new Date(2012, 1, 29))
 * //=> 29
 */
function getDate(dirtyDate) {
  (0, _index2.default)(1, arguments);
  var date = (0, _index.default)(dirtyDate);
  var dayOfMonth = date.getDate();
  return dayOfMonth;
}
module.exports = exports.default;

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
155 B lrw-r--r-- 2026-02-28 00:36:46
Edit Download
980 B lrw-r--r-- 2026-02-28 00:33:48
Edit Download
1.36 KB lrw-r--r-- 2026-02-28 00:32:14
Edit Download
97 B lrw-r--r-- 2026-02-28 00:35:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).