c00kie88
asked on
Convert string to date
Hi all,
how do i convert user input (which i assume the example below is as string ) to unix date format?
echo "please enter date [dd/mm/yy]:
read answer
I can't use date -d option as my unix is sun solaris n does not support that.
It only supports
date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]
any idea?
how do i convert user input (which i assume the example below is as string ) to unix date format?
echo "please enter date [dd/mm/yy]:
read answer
I can't use date -d option as my unix is sun solaris n does not support that.
It only supports
date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]
any idea?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Why given grade B?
Was your intention to reset the system date/time? I got the impression you were simply trying to convert one date format to another.