# datetime **Repository Path**: cestr/datetime ## Basic Information - **Project Name**: datetime - **Description**: 日期类型工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-02 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # datetime 日期类型工具 ## 快速开始: 1. 引入 [datetime.js](dist/js/datetime.js) ```js var dt = DateTime.createTime('2018-6-13 12:12:19'); // => Date Object ``` ### DateTime API createTime(dateStr) dateStr: 格式要求:yyyy-mm-dd HH:MM:SS, yyyy-m-d H:M:S, yyyy/mm/dd HH:MM:SS, yyyy/m/d H:M:S