YMDFormat ( theDate )
Reformats a given date into text as YYYY-MM-DD
Average rating: 4.3 (26 votes) Log in to vote
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
This is my first shot at a custom function, so don't laugh. ;-) I basically needed to reformat a date in the format of YYYY-MM-DD to send as a text string.
Peter Bouma, Amsterdam, Netherlands
Jan 27, 2010
Instead of Case statements I'd prefer:
Year(theDate) & "-" &
Right("00" & Month(theDate); 2) & "-" &
Right("00" & Day(theDate); 2)
John Pollard, sac, ca
Jun 9, 2016
Nice clarification there. Started with a good idea made better.
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.