I suppose that your entered 'Object' strEnteredDate is allready a string.
So you only need to cut the left 10 chars from this string and write it into a new string (or the same).
For example like this :
strEnteredDate = strEnteredDate.substring(0,10)