Finding modified File List after the chosen date in Korne Shell...

I am trying to write a Korne Shell asking the user for a date and a directory and then search recursively in this directory the list of files modified after the date chosen. But I am not getting good results when I Test it...

#!/usr/bin/ksh
echo "Enter a date (YYYYMMDD) "
read date
touch -t 00000000 /tmp/timestamp
echo "Enter a directory.."
read dir
find "$dir" -type f -newer /tmp/timestamp

I earlier used -mtime, but it should not be used, as -mtime searches for files older by no. of days and not for files modified after a particular date.

Can anyone please provide with some pointers to my above Code wrt the mistakes that I did..

Thanks a lot in advance... :-))

a few issues:

you're asking user to input a date, you then read that date, however after that, you don't reference this input anywhere. shouldn't you be using this for your touch command, instead of: touch -t 00000000 /tmp/timestamp ?

The touch command you have doesn't work, at least here on any of my versions of UNIX.

touch require not only a date, but hrs/mins, so you'll need to reformat input from the read: from the man page:
format is YYMMDDhhmm

touch -t 8907140000 bastille
/tmp $ ll bastille
-rw-r--r-- 1 root sys 0 Jul 14 1989 bastille

i think -mtime should do the job. becuase if u did not modify/change a file in the specified period it wont show up.

find . -type f -mtime -7 -print

this shows a list of all files that were modified within the last 7 days.