Custom Web Publishing Guide

Table Of Contents
Developing FileMaker XSLT stylesheets 67
1 Long day format is: EEEE (in all locales) For example: “Sunday”
Date, time, day extension function Data type returned Description
fmxslt:get_date() string Returns the current date in the short format.
fmxslt:get_date(String format) string Returns the current date in the format you specify. Enter
the string “short” or “long” for the format parameter.
fmxslt:get_time() string Returns the current time in the short format.
fmxslt:get_time(String format) string Returns the current time in the format you specify. Enter
the string “short” or “long” for the format parameter.
fmxslt:get_day() string Returns the current day in the short format.
fmxslt:get_day(String format) string Returns the current day in the format you specify. Enter
the string “short” or “long” for the format parameter.
fmxslt:get_short_date_format() string Returns the formatting string for short date format: “M/
d/yy”.
fmxslt:get_long_date_format() string Returns the formatting string for long date format:
“MMM d, yyyy”.
fmxslt:get_short_time_format() string Returns the formatting string for short time format:
“h:mm a”.
fmxslt:get_long_time_format() string Returns the formatting string for long time format:
“h:mm:ss a z”.
fmxslt:get_short_day_format() string Returns the formatting string for short day format:
“EEE”.
fmxslt:get_long_day_format() string Returns the formatting string for long day format:
“EEEE”.
fmxslt:compare_date(String date1,
String date2)
number This function compares two date values. It returns a
negative number if date1 is before date2. It returns a
positive number if date1 is after date2. It returns a 0 if
date1 is identical to date2. Both dates must be specified
in the short date format.
fmxslt:compare_time(String time1,
String time2)
number This function compares two time values. It returns a
negative number if time1 is before time2. It returns a
positive number if time1 is after time2. It returns a 0 if
time1 is identical to time2. Both times must be specified
in the short time format.
fmxslt:compare_day(String day1,
String day2)
number This function compares two day values. It returns a
negative number if day1 is before day2. It returns a
positive number if day1 is after day2. It returns a 0 if
day1 is identical to day2. Both days must be specified in
the short day format.