>[info] H.getNowDateFormat(dateSeparator, timeSeparator, isShowTime, datetime);,將當前時間或指定時間格式化成指定時間格式,String類型。
*****
#### 輸入參數
##### **dateSeparator**:日期分隔符,String類型,默認值:`-`
##### **timeSeparator**:時間分隔符,String類型,默認值:`:`
##### **isShowTime**:是否顯示完整時間,Boolean類型,默認值:`true`
##### **datetime**:指定時間,Date類型,默認值:`當前時間`
*****
#### 使用示例
```
var _datetime = H.getNowDateFormat(); // => 2016-03-17 12:31:30
var _datetime = H.getNowDateFormat("/",null,false); // => 2016/03/17
var _datetime = H.getNowDateFormat("/",null,false,"2015-03-12"); // => 2015/03/12
```
- 序言簡介
- 約定與規則
- 捐贈與外包
- 版本迭代
- 開始使用
- 屬性
- appId
- appName
- appVersion
- systemType
- systemVersion
- version
- deviceId
- deviceToken
- deviceModel
- deviceName
- operator
- connectionType
- fullScreen
- screenWidth
- screenHeight
- winName
- winWidth
- winHeight
- frameName
- frameWidth
- frameHeight
- pageParam
- wgtParam
- appParam
- wgtRootDir
- fsDir
- cacheDir
- 事件
- batterylow
- batterystatus
- keyback
- keymenu
- volumeup
- volumedown
- offline
- online
- pause
- resume
- scrolltobottom
- shake
- swipedown
- swipeleft
- swiperight
- swipeup
- tap
- longpress
- viewappear
- viewdisappear
- noticeclicked
- appintent
- smartupdatefinish
- 方法
- v
- M
- trim
- getFileExt
- getAgeForBirthDay
- isNumber
- isPlusDecimal
- isDate
- getNowDateFormat
- transPHPTimestamp
- transJsTimestamp
- isObject
- cloneObj
- extendObj
- isFunction
- isArray
- newGUID
- unique
- addEventListener
- 常量
- 模板引擎
- 語法糖
- 建議收集