Skip to content

Conversation

@DonPasquale
Copy link
Contributor

@DonPasquale DonPasquale commented Nov 24, 2025

Enable dateFormats in "create_record()" and "edit_record()".

This would complement the way dateFormats can be specified in get_record() and get_records().

For reference see options here:
https://help.claris.com/en/data-api-guide/content/edit-record.html
https://help.claris.com/en/data-api-guide/content/create-record.html

Enable dateFormat in "create_record()" and "edit_records()".
@DonPasquale DonPasquale changed the title Enable dateFormats in "create_record()" and "edit_records()". Enable dateFormats in "create_record()" and "edit_record()". Nov 24, 2025
@davidhamann
Copy link
Owner

Thanks for the PR. Looks good to me.

One question, though: Do you happen to know when this option (for creating/editing) was added to the DAPI?

We have this note in our docs for get_record, etc.:

Note that dates should always be sent in the US format when creating or editing a record.

This came from this commit: 11e0273 (maybe @LeJeko remembers?)

I wonder if there were issues with older server versions not accepting the dateformats? Then we could also update/mention it in the docs.

@DonPasquale
Copy link
Contributor Author

DonPasquale commented Dec 9, 2025

Did not know beforehand, I was just looking at the current documentation.

A quick search reveals that this feature was apparently introduced with FileMaker Server 21 (2024). It is mentioneed in the documentation here:

https://help.claris.com/archive/fm21/en/data-api-guide/content/create-record.html

It was not mentioned in previous documentation, e.g., for v19 or v20 (2023):

https://help.claris.com/archive/fm19/en/data-api-guide/content/create-record.html
https://help.claris.com/archive/fm20/en/data-api-guide/content/create-record.html

Albeit, this seems to apply to 'Get a single record' and 'Get a range of records' as well, at least if we only look at the docs.

I would have expected a bump in version number with this change, but unfortunately I am not able to test against different server versions currently.

@davidhamann
Copy link
Owner

Thanks for checking. I'll see if I can set up an older server for testing. Will report back (hopefully until EOY) and then merge.

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