apps/utils/date: check string length and valid date of month
apps/utils/date: check string length and valid date of month

1. Check a validation of day for each month including leap year
  Because each month has different days like 31 for Jan, 28 for Feb,
  date should not get an invalid date like 31 for Apr.
  Now, when date gets 31 Apr, it becomes 1 May.

TASH>>date -s Apr 31 12:12:12 2000
bad parameter
TASH>>date -s Jan 32 00:00:00 2000
bad parameter
TASH>>date -s Jan 31 00:00:00 2000
TASH>>date
Jan 31 00:00:01 2000
TASH>>date -s Feb 29 11:11:11 2000
TASH>>date
Feb 29 11:11:12 2000
TASH>>date -s Feb 29 22:22:22 2001
bad parameter

2. Check length of month and week string with 3
  Because we guide 3 abbreviation characters like Apr, Fri and
  when we get invalid character at 4th, date does not say
  it has bad parameters.

TASH>>date -s Janr 31 00:00:00 2018
bad parameter
TASH>>date -s Jan 31 00:00:00 2018
TASH>>date
Jan 31 00:00:01 2018
TASH>>date -s Ja 31 12:12:12 2000
bad parameter

Signed-off-by: sunghan-chang <c954e25285721d8faa8b1a5c1ae2ef5a35338d32@samsung.com>

HONGCHAEHEE/TizenRT,Samsung/TizenRT,chanijjani/TizenRT,jeongarmy/TizenRT,davidfather/TizenRT,junmin-kim/TizenRT,Samsung/TizenRT,an4967/TizenRT,junmin-kim/TizenRT,HONGCHAEHEE/TizenRT,chanijjani/TizenRT,JeonginKim/TizenRT,sunghan-chang/TizenRT,jsdosa/TizenRT,davidfather/TizenRT,pillip8282/TizenRT,davidfather/TizenRT,chanijjani/TizenRT,jeongarmy/TizenRT,davidfather/TizenRT,sunghan-chang/TizenRT,jeongchanKim/TizenRT,an4967/TizenRT,junmin-kim/TizenRT,sunghan-chang/TizenRT,jeongarmy/TizenRT,jsdosa/TizenRT,HONGCHAEHEE/TizenRT,Samsung/TizenRT,Samsung/TizenRT,an4967/TizenRT,jsdosa/TizenRT,an4967/TizenRT,HONGCHAEHEE/TizenRT,JeonginKim/TizenRT,jsdosa/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,sunghan-chang/TizenRT,JeonginKim/TizenRT,an4967/TizenRT,HONGCHAEHEE/TizenRT,jeongchanKim/TizenRT,davidfather/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,HONGCHAEHEE/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,JeonginKim/TizenRT,pillip8282/TizenRT,sunghan-chang/TizenRT,jeongchanKim/TizenRT,an4967/TizenRT,chanijjani/TizenRT,JeonginKim/TizenRT,davidfather/TizenRT,chanijjani/TizenRT,pillip8282/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,an4967/TizenRT,jsdosa/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,davidfather/TizenRT,junmin-kim/TizenRT,Samsung/TizenRT,pillip8282/TizenRT,chanijjani/TizenRT,chanijjani/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,jeongchanKim/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,jeongchanKim/TizenRT,JeonginKim/TizenRT,junmin-kim/TizenRT,jeongarmy/TizenRT,Samsung/TizenRT