That should be possible. Here is an example of how I am using the slice date to dynamically define folder structure.
"typeProperties": {
"scriptPath": "script.usql",
"scriptLinkedService": "LinkedService_AS_Storage",
"degreeOfParallelism": 3,
"priority": 100,
"parameters": {
"in": "$$Text.Format('/RawData/{0:yyyy}/{0:MM}/{0:dd}/In.csv',SliceStart)",
"out": "$$Text.Format('/TempData/{0:yyyy}/{0:MM}/{0:dd}/Out.csv',SliceStart)"
}
}
Inside the USQL script you would just reference the @in or @out parameters. Be careful, U-SQL has case-sensitive syntax. They are actually added to the top of the script file when azure data factory gets it from storage to run.
Hope this helps.