Time Formats
DayBackForFileMaker.TimeFormats History
Hide minor edits - Show changes to markup
DayBack will attempt to auto-detect date and time formats automatically. If it isn't detecting it properly or you need to change it. You can navigate to the "WebViewer: Under The Hood" layout. Find the toggle switch that is labeled "Use Auto Settings" and turn it off. From there you can set your region settings including to use 12 or 24 hour time. Click "Load Settings" when done.
DayBack will attempt to auto-detect date and time formats automatically. If it isn't detecting it properly or you need to change it, you can navigate to the "WebViewer: Under The Hood" layout. Find the toggle switch that is labeled "Use Auto Settings" and turn it off. From there you can set your region settings including to use 12 or 24 hour time. Click "Load Settings" when done.
In the Event Display
Events in the calendar (on the month view, for example) are displayed as text, so we control the formatting of time in a script before turning that time into text we show in the calendar.
Edit the script "Format Event Time --- Edit Time Formats for Events Here ---" and you'll see a number of commented switches to do things like turn the time from 12hr time to 24hr time.
In the (vertical or horizontal) Time Scale
The times that display on the vertical time scale of the day view, week view, and schedule views are actual time fields, so you'll want to enter layout mode and change those using FileMaker's native time formating controls at the layout level. If you have trouble getting to the right tab in layout mode, read this.
In Event Details
The drop-down lists of event times can be changed by editing the value list "Calendar Times". The time shown on event details is editable in layout mode, just as you'd change the format of any other time field.
Can I remove the time display from just the month view?
Yes. The start time is controlled in the last Set Variable line of the script "Format Event Time --- Edit Time Formats for Events Here ---". To remove the time only in month view, change this part of that last calc...
...to this:
That's it.
If you want to alter the displays of other views, use a Case() test instead of If() in the calc above and test for the other calendar modes like "Day".
DayBack will attempt to auto-detect date and time formats automatically. If it isn't detecting it properly or you need to change it. You can navigate to the "WebViewer: Under The Hood" layout. Find the toggle switch that is labeled "Use Auto Settings" and turn it off. From there you can set your region settings including to use 12 or 24 hour time. Click "Load Settings" when done.
If you don't want to set this data in fields and would rather make a permanent change in the settings script you can edit the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---". Find the comment labeled "Localization" toward the bottom of the script. Edit the variable "$$sc_AutoDetectLocalization" to say False so it doesn't attempt to auto detect settings. Then edit the variable "$$sc_12HourTime" to either True or False depending on your preference.
That's it.
That's it.
If you want to alter the displays of other views, use a Case() test instead of If() in the calc above and test for the other calendar modes like "Day".
The drop-down lists of event times can be changed by editing the value list 'Calendar Times". The time shown on event details is editable in layout mode, just as you'd change the format of any other time field.
The drop-down lists of event times can be changed by editing the value list "Calendar Times". The time shown on event details is editable in layout mode, just as you'd change the format of any other time field.
The drop-down lists of event times can be changed by editing the value list 'Time List". The time shown on event details is editable in layout mode, just as you'd change the format of any other time field.
The drop-down lists of event times can be changed by editing the value list 'Calendar Times". The time shown on event details is editable in layout mode, just as you'd change the format of any other time field.
In Event Details
The drop-down lists of event times can be changed by editing the value list 'Time List". The time shown on event details is editable in layout mode, just as you'd change the format of any other time field.
t1me = GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] )
t1me = if ( $$sc_Mode ≠ "Month" ; GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] ) ; "" ) ];
Let ( [
Let ( [
Can I remove the time display from just the month view?
Yes. The start time is controlled in the last Set Variable line of the script "Format Event Time --- Edit Time Formats for Events Here ---". To remove the time only in month view, change this part of that last calc...
Let ( [ t1me = GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] ) ];
...to this:
Let ( [ t1me = if ( $$sc_Mode ≠ "Month" ; GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] ) ; "" ) ];
That's it.
Events are displayed as text, so we control the formatting of time in a script before turning that time into text we show in the calendar.
Events in the calendar (on the month view, for example) are displayed as text, so we control the formatting of time in a script before turning that time into text we show in the calendar.
How can I change the way times are displayed?
In the Event Display
Events are displayed as text, so we control the formatting of time in a script before turning that time into text we show in the calendar.
Edit the script "Format Event Time --- Edit Time Formats for Events Here ---" and you'll see a number of commented switches to do things like turn the time from 12hr time to 24hr time.
In the (vertical or horizontal) Time Scale
The times that display on the vertical time scale of the day view, week view, and schedule views are actual time fields, so you'll want to enter layout mode and change those using FileMaker's native time formating controls at the layout level. If you have trouble getting to the right tab in layout mode, read this.