Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Day of the Week Script

Featured Replies

Hi everyone, I am trying to create script that upon which day of the week will do a calculation. Once I have the code that will allow me to dtermine which day it is such as "Monday" "Teusday" I will be golden. It has to do this with out using a find function also, if you guys can help me out I woukld be in your favor. Thanks

For the current day of the week, use:

DayOfWeek(Status(CurrentDate))

  • Author

When I use that function it places a number in the field I have it set to. Is there a way to have a Left word statement with a loop going thorugh the days of the week, I am not sure about the syntax on this, I am very new to the scripting world of File Maker

a Case statement might work in for you... if i am reading the posts right, i am not exactly sure what you want.. but i will give it a try

Case(

DayOfWeek(Status(CurrentDate)) = 1 , "Sunday" ,

DayOfWeek(Status(CurrentDate)) = 2 , "Monday" ,

DayOfWeek(Status(CurrentDate)) = 3 , "Tuesday" ,

DayOfWeek(Status(CurrentDate)) = 4 , "Wednesday" ,

DayOfWeek(Status(CurrentDate)) = 5 , "Thursday" ,

DayOfWeek(Status(CurrentDate)) = 6 , "Friday" ,

DayOfWeek(Status(CurrentDate)) = 7 , "Saturday"

)

that will give you the day of the week in the field in stead of the number.. i think... i am not positive..

My bad, wrong function. Use: DayName(Status( CurrentDate))

  • Author

Ok that worked great the only thing is it is not a current date. The field in which I am trying to will be user defined, so it can't be Current date, it would have to go to the field the user sets the date in, see which day of the week that falls on then post the specified date in another field for the status scripting.

  • Author

excuse me, it needs to find which day of the week the user specified day is on and not date. My bad

  • Author

I got it, but thank you for the scripting lesson

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.