Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Change Year


Recommended Posts

I have a FMP7 file with a set of records with the wrong year in the date field.


Is there an easy way of changing the field contents of the set to just amend the first two characters of the year, replace 20 with 19. The date format is set as follows; dd/mm/yyyy


I want to change just two characters **/**/20** to **/**/19** and keep all other characters in each record as they are.





Link to comment
Share on other sites

A date is not stored as text. Therefore, you should manipulate the date, not the textual display of a date:


Date ( Month ( yourDatefield ) ; Day ( yourDatefield ) ; Year ( yourDatefield ) -100 )


Use this in a looped SetField[] script step, or in Replace Field Contents. Make sure you have a backup, as this is not reversible.

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Terms of Use