Skip to content

Commit

Permalink
Docs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 31, 2023
1 parent e0d70f3 commit a0067c5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/serializer-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,23 @@ VerifierSettings.DontScrubDateTimes();

`AddExtraDatetimeFormat` allows specifiying custom date formats to be scrubbed.

snipper: AddExtraDatetimeFormat
<!-- snippet: AddExtraDatetimeFormat -->
<a id='snippet-addextradatetimeformat'></a>
```cs
[ModuleInitializer]
public static void UseAddExtraDatetimeFormat() =>
VerifierSettings.AddExtraDatetimeFormat("yyyy-MM-dd");

[Fact]
public Task WithExtraDatetimeFormat() =>
Verify(
new
{
date = "2022-11-08"
});
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L44-L58' title='Snippet source file'>snippet source</a> | <a href='#snippet-addextradatetimeformat' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


### Named Date and Times
Expand Down

0 comments on commit a0067c5

Please sign in to comment.