Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- date -d "$1" >/dev/null 2>/dev/null
- VALID="$?"
- if [ $VALID ]
- then
- echo "Valid!"
- else
- echo "Not valid!"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement