Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add date formatting (optional) #213

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

shandybob76
Copy link
Contributor

When calling the GetDescription method, some values from Companies House are dates.

I've extended the GetDescription to pass in a date format.

When processing the value we check whether we have a date format, and whether the value is a date from Companies house formatted as yyyy-MM-dd. If it is, parse the date, then apply the passed in format.

Unit tests added.

@shandybob76
Copy link
Contributor Author

The build failed on the scenario tests...these seem broken on master too. Any idea what is the problem there?

@shandybob76
Copy link
Contributor Author

Looks like maybe the API key on the tests is invalid so the integration tests are failing

@kevbite
Copy link
Owner

kevbite commented Nov 28, 2024

Happy to accept this PR.

@kevbite kevbite merged commit 30d02bc into kevbite:master Nov 28, 2024
1 check failed
@shandybob76 shandybob76 deleted the add-date-formatting branch November 28, 2024 10:52
@shandybob76
Copy link
Contributor Author

shandybob76 commented Nov 28, 2024

Hi Kev, Do you know when will the built version get pushed to nuget? Cheers, Rob

@kevbite
Copy link
Owner

kevbite commented Dec 6, 2024

@shandybob76 latest version is up on NuGet - https://www.nuget.org/packages/CompaniesHouse/8.0.35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants