Problem in passing date to external function from perl script.

my $sysdate = strftime('%Y-%m-%d', localtime );
 biDeriveByDate('Table_Str',$sysdate,\@lIndx,\@lResVals)

In a perl script, when I'm trying to pass $sysdate to some external function it's not working since $sysdate is passed as a string mentioned above but my function is expecting a date value and the function is returning no value. So is there any method to convert the $sysdate to Date, so that my function returns a value. Function is expecting date in the format 'dd-mm-yyyy'.
Any help would be highly appreciated.

The string '%Y-%m-%d' there determines what order you get in strftime. %Y is year, %m is month, %d is day.

Since it doesn't want yyyy-mm-dd, it won't work. Change that string to change the order to dd-mm-yy.