I use the below function in ksh to return the long value of date parts
function convert_date_to_long {
long_date="${1}${2}${3}"
return $long_date;
}
but the result i get is 209
when i pass the parameters 2015 02 25
.
How do i get the long value 20150225
?
echo
command success. What do you actually want? – cuonglm Jan 19 '16 at 12:54long_date=$(convert_date_to_long $year $month $day)
– xGen Jan 19 '16 at 13:02