Brian Dunning's FileMaker Custom Functions

DateFormat_DDMMYYYY ( MyDate )

Converts a date into UK format DD/MM/YYYY

  Be the first to rate this function Log in to vote

Patrick Mathers   Patrick Mathers - Show more from this author
Records Doctor
https://recordsdoctor.com

Share on Facebook Share on Twitter

  Sample input:
DateFormat_DDMMYYYY ( "04/07/2024" )
  Sample output:
"07/04/2024"

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

A simple custom function that converts any date value into UK format of DD/MM/YYYY.

 

Comments

Robert D Trammel   Robert D Trammel
Jul 29, 2024
You should wrap MyDate in a GetAsDate function. That way you can at least trap for scenarios where there is an invalid date as an input.
Let([
dateValue = GetAsDate( MyDate );
...
];
...
)
 
Patrick Mathers   Patrick Mathers, Records Doctor
Jul 30, 2024
Thanks Robert. I have adjusted it with your suggestion.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. 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 21 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: