To get the current date in MATLAB, you can use the date function. Here's an example:
main.m
```
current_date = date
```
This will store the current date (in the format 'dd-mmm-yyyy') in the `current_date` variable. You can also specify a format for the date using the `datestr` function:
```
current_date = datestr(now, 'yyyy-mm-dd')
```
This will store the current date in the format 'yyyy-mm-dd' (e.g. '2021-10-01') in the `current_date` variable.