Skip to content

Commit f710075

Browse files
committed
docs: date format
1 parent 2485d2a commit f710075

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ The default execution mode is `Mode::APPEND`. The package supports the following
7272
- `Yajra\SQLLoader\Mode::REPLACE` - Replace data in table.
7373
- `Yajra\SQLLoader\Mode::TRUNCATE` - Truncate table then insert data.
7474

75+
## Date Formats
76+
77+
The SQL*Loader default date format is `YYYY-MM-DD"T"HH24:MI:SS."000000Z"` to match Laravel's model date serialization.
78+
You can change the date format using the `dateFormat` method.
79+
80+
```php
81+
$loader->dateFormat('YYYY-MM-DD HH24:MI:SS');
82+
```
83+
7584
## Available Methods
7685

7786
### Options

0 commit comments

Comments
 (0)