shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
isMmddyyyyDate
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is
Check if is a valid mm.dd.yyyy date This will match : mm.dd.yyyy | mm/dd/yyyy | mm-dd-yyyy | mm dd yyyy
Params
- date*-String
The date to check
Return
- -Boolean
true if is valid, false if not
Example
import { isMmddyyyyDate } from '@blackbyte/sugar/is'
if (isMmddyyyyDate('12.25.2018')) {
// do something cool
}Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space