DayBackForFileMaker

Time Formats

DayBackForFileMaker.TimeFormats History

Hide minor edits - Show changes to output

November 13, 2017, at 07:42 PM by 192.88.134.15 -
Changed line 3 from:
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.
to:
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.
Changed lines 3-43 from:
'''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 [[CalendarTabs | 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...


->// -------------- ALL OTHERS -------------------

-> Let ( [
-> t1me = GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] )
->];



...to this:



->// -------------- ALL OTHERS -------------------

-> Let ( [
->t1me = if ( $$sc_Mode ≠ "Month" ; GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] ) ; "" )
-> ];


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 [[Modes in the Calendar | calendar modes]] like "Day".
to:
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.
June 28, 2013, at 01:50 PM by 50.132.84.245 -
Changed lines 41-43 from:
That's it.
to:
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 [[Modes in the Calendar | calendar modes]] like "Day"
.
August 12, 2012, at 05:34 PM by 50.132.84.245 -
Changed lines 15-16 from:
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.
to:
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.
August 12, 2012, at 05:32 PM by 50.132.84.245 -
Changed lines 15-16 from:
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.
to:
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.
August 12, 2012, at 05:30 PM by 50.132.84.245 -
Added lines 13-16:
'''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.

Changed lines 22-25 from:
];


to:
->];


Changed line 21 from:
t1me = GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] )
to:
-> t1me = GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] )
Changed lines 33-36 from:
t1me = if ( $$sc_Mode ≠ "Month" ; GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] ) ; "" )
];

to:
->t1me = if ( $$sc_Mode ≠ "Month" ; GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] ) ; "" )
-> ];

Changed line 20 from:
Let ( [
to:
-> Let ( [
Changed line 32 from:
Let ( [
to:
-> Let ( [
Added lines 12-37:

!! 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...


->// -------------- ALL OTHERS -------------------

Let ( [
t1me = GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] )
];



...to this:



->// -------------- ALL OTHERS -------------------

Let ( [
t1me = if ( $$sc_Mode ≠ "Month" ; GetAsTime ( $$sc_DateTimeStart[$$sc_SourceInUse] ) ; "" )
];


That's it.
December 31, 2009, at 06:44 AM by 76.22.123.157 -
Changed lines 5-6 from:
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.
to:
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.
November 28, 2009, at 01:10 AM by 76.22.123.157 -
Added lines 1-11:
!! 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 [[CalendarTabs | this]].
(855) SEEDCODE
[email protected]
Follow us: