Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including cur_date_format with all npm packages installed. Try it out:

var curDateFormat = require("cur_date_format")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

cur_date_format v0.0.1

对当前系统时间按参数进行格式化,参数形式可能是这样的:YYYY-MM-DD,当月份和月号的数字值小于10时,会在左边添加一个0进行填充。

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free