I have a report that prompts for a date range and then selects the correct data from #dataTable#.
Here is the code to get the date range from the form:
Code: Select all
$fromdate = reformatField($formValue['vFrom'], 11, $quotes = false);
$todate = reformatField($formValue['vTo'], 11, $quotes = false);
Since I live in the USA, I would like the format to be '01-13-2007'. I have tried various ways to make this work but have been unsuccessful.
Any suggestions?
John