![]() |
ChatGPT 8/15/2025 |
Certainly! In ASPRunner.NET, if you want to include the date and time when an export file is generated, you typically need to customize the export functionality. Here’s how you can do it:
Here is an example of how you could modify the export filename to include the current date and time:
If you have any specific requirements or additional questions, feel free to ask! |
C
|
Chris Whitehead 8/15/2025 |
Are you wanting the date and time in the filename or in a log? |
C
|
Chris Whitehead 8/16/2025 |
If you want to rename and add the datetime to the filename then maybe this might help a little. Put this in the beforeProcessExport event. ### build the filename There's also this from afew years ago but it should still work with a tweak or two. https://asprunner.com/forums/topic/17015-script-to-rename-export-csv-file |
M
|
max benelli author 8/16/2025 |
Hi, both ways would work. The date is in this format: dd/mm/yyyy. Could you please provide me with a ready-made source file that I can copy and paste, especially since my English isn't great? |
M
|
max benelli author 8/16/2025 |
Hi, both ways would work. The date is in this format: dd/mm/yyyy. Could you please provide me with a ready-made source file that I can copy and paste, especially since my English isn't great? |
C
|
Chris Whitehead 8/16/2025 |
Max, I can't provide a ready made source file as it's code in the beforeProcessExport event., I'll try and show you with pictures. You state your table is admin_users, the demo table is called todo_lists so don't let that confuse you.. As shown In the picture you need to be on the events section which is accessed by the dropdown in the centre at the bottom of phprunner. Then, when in the events section, on the left hand tree menu(highlighted), you need to navigate to your admin_users export page, then "Export page : Before process"(highlighted) this is where you paste the code. This is the code you'll need to paste into the event. ### build the filename |