Brian Dunning's FileMaker Custom Functions

EncryptDate ( TheDate )

Converts a date in a pseudo activation code format

  Average rating: 4.4 (30 votes) Log in to vote

Ibrahim Bittar Torres   Ibrahim Bittar Torres - Show more from this author
Eikonsys, S.A. de C.V.

Share on Facebook Share on Twitter

  Sample input:
EncryptDate ( 02/04/2007 )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This simple custom function converts a date into its number equivalent, i.e.: 02/04/2007 = 732711, and creates six groups of characters separated by dashes, where the last digit is the corresponding date number and the rest are random characters or numbers.

In this example check this out:
2qly7 -> 7
ru6g3 -> 3
s3p62 -> 2
twox7 -> 7
518h1 -> 1
3g821 -> 1

This CF does not pretend to be a "security feature" but for an end user who is not a FileMaker experienced programmer it can be very hard to guess what it means, so you can use it in low risk situations.

To get the date back just take the last digit of each group and then place them in a calculation with date result.

Have fun!!!



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: