User manual
Table Of Contents
- Preface Learning how to use FileMakerPro
- Chapter 1 FileMaker Pro basics
- Chapter 2 Adding and viewing data
- Chapter 3 Finding and sorting information
- Finding records
- Finding text and characters
- Finding exact matches in text fields
- Finding numbers, dates, and times
- Finding ranges of information
- Finding data in related fields
- Finding records that match multiple criteria
- Finding empty or non-empty fields
- Finding duplicates
- Finding all records except those matching criteria
- Hiding records from a found set and viewing hidden records
- Viewing, repeating, or changing the last find
- Sorting records
- Finding records
- Chapter 4 Previewing and printing information
- Chapter 5 Creating a database
- Chapter 6 Creating and managing layouts and reports
- Chapter 7 Customizing layouts
- Chapter 8 Working with related files
- Chapter 9 Protecting databases with passwords and groups
- Chapter 10 Creating scripts to automate tasks
- About scripts
- Creating scripts: an overview
- About ScriptMaker steps
- Control script steps
- Navigation script steps
- Sort, find, and print script steps
- Editing script steps
- Fields script steps
- Records script steps
- Windows script steps
- Files script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Changing scripts
- Duplicating, renaming, or deleting scripts
- Importing scripts
- Listing scripts in the Scripts menu
- Using buttons with scripts
- Example of a ScriptMaker script
- Chapter 11 Using formulas and functions
- Chapter 12 Importing and exporting data
- Chapter 13 Sharing databases on a network
- Chapter 14 Publishing databases on the Web
- About publishing databases on the Web
- How users work with databases on the Web
- What you need to publish databasesontheWeb
- Publishing databases on the Web: an overview
- Enabling FileMaker Pro Web Companion
- Configuring FileMaker Pro WebCompanion
- Enabling Web Companion sharing
- Setting up browser views
- Testing your published database
- About browser views for web publishing
- Chapter 15 Using ODBC with FileMakerPro
- Appendix A Customizing FileMaker Pro
- Appendix B Backing up and recovering files
- Appendix C FileMaker Pro Quick Reference (Windows)
- Appendix D FileMaker Pro Quick Reference (Mac OS)
- Index
Using formulas and functions
11-7
Date functions
Use these functions when date is a date field holding a date, or a
calculation or expression with a date result.
Example: Year (Date Of Birth) returns 1962 when the Date of
Birth field holds 1/1/1962.
Important To avoid confusion when using dates, always use four-
digit years. For more information on how FileMaker Pro 5 handles
Year 2000 issues, see www.filemaker.com.
Note System formats affect the way dates are displayed. For
information, choose Help menu > Contents and Index, click the Index
tab, and type System formats.
Time functions
Aggregate functions
Use aggregate functions to calculate statistical data for several or
many fields, field repetitions, or related records.
Aggregate functions operate on
(field...) parameters. Depending on
the
(field...) parameter or parameters you specify, you can aggregate
data for all non-blank values in:
1 several non-repeating fields in a record (field1, field2, field3...)
1 a field in matching related records specified by
(relationship::relatedfield), whether or not these records appear in a
portal.
1 all repetitions in a repeating field (repeatingfield)
1 corresponding repetitions of repeating fields in a record
(repeatingfield1, repeatingfield2, repeatingfield3), if the result is
returned in a repeating field with at least the same number of
repetitions.
1 several fields in the first matching record specified by (relationship
::relatedfield1, relationship::relatedfield2,...). You can name a
different relationship for each related field
(relationship1::relatedfield x, relationship2::relatedfield y...).
Syntax Definition
Date (month, day, year) Returns the calendar date of month, day, year (in
digits), from January 1, 0001. Year must be four digits.
DateToText (date) Returns date as data of type Text.
Day (date) Returns a number representing the day portion of date.
DayName (date) Returns the weekday name of date.
DayofWeek (date) Returns the weekday position of date, from Sunday
(1) through Saturday (7).
DayofYear (date) Returns the number of days elapsed after January 1 of
the year in date.
Month (date) Returns a number representing the month portion of date.
MonthName (date) Returns the month name based on the date given.
Today Returns the current date.
WeekofYear (date) Returns the number of weeks elapsed after January 1
of the year in date, counting fractions of weeks as
whole weeks.
WeekofYearFiscal
(date, starting day)
Returns the number of weeks elapsed after the first
week of the year of date, using starting day (a number
from 1-7, where 1 is Sunday) as the first day of the
week. The first week of the year is a week that
contains four or more days of that year.
Year (date) Returns a number representing the year portion of date.
Syntax Definition
Hour (time) Returns the hour portion of time
Minute (time) Returns the minutes portion of time
Seconds (time) Returns the seconds portion of time
Time (hours, minutes, seconds) Returns hours, minutes, seconds (as digits) as
a time, in the current time field format
TimeToText (time) Returns time as data of type Text