Brian Dunning's FileMaker Custom Functions

IsLastDayMonth ( TheDate )

Tells if the date is last day of the month

  Average rating: 4.5 (27 votes) Log in to vote

Rafael Caballé   Rafael Caballé
adventoplus
http://adventoplus.com

Share on Facebook Share on Twitter

  Sample input:
IsLastDayMonth ( 02/28/15 )
  Sample output:
1

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

Returns 0 if TheDate is not the last day of the month and 1 if it is last day

 

Comments

Raybaudi   Raybaudi, Rome
Mar 5, 2015
Why not a simpler:

TheDate = Date ( Month ( TheDate ) + 1 ; 0 ; Year ( TheDate ) )
 
unix   unix, Japan
Mar 5, 2015
Day ( TheDate + 1 ) = 1
 
Rafael Caballé   Rafael Caballé, Barcelona
Mar 6, 2015
Nicer and easier. Thanks!
 
Raybaudi   Raybaudi, Rome
Mar 7, 2015
Ditto !
 

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 15 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:

Under construction. Email me your wish list for improvements.