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.

Continual date

Featured Replies

I want to have in my records a continual date that change every day but in a special format so I have made a script that I give you below:

Continual date script:

DayName (Get ( CurrentDate ))& " " &

Day(Get( CurrentDate ))

&" " &

Case(MonthName(Get( CurrentDate )="January"); "Jan";

MonthName(Get( CurrentDate )="February"); "Feb";

MonthName(Get( CurrentDate )="March"); "Mar";

MonthName(Get( CurrentDate )="April"); "Αp";

MonthName(Get( CurrentDate )="May"); "Μay";

MonthName(Get( CurrentDate )="June"); "Jun";

MonthName(Get( CurrentDate )="July"); "Jul";

MonthName(Get( CurrentDate )="August"); "Aug";

MonthName(Get( CurrentDate )="September"); "Sep";

MonthName(Get( CurrentDate )="October"); "Oct";

MonthName(Get( CurrentDate )="November"); "Νov";

MonthName(Get( CurrentDate )="December"); "Dec";

)

& " " & Year(Get ( CurrentDate ))

But it does not change every day. What is wrong?

Pascal

Wouldn't it stay the same for the entire month?

Try going to the [color:blue]Options for the field and changing the [color:blue]Storage to [color:blue]Unstored, and see if that does what you want.

HTH

Lee

Hi edudna

1) that isn't a script... it is a calculation

2) it can be stripped to:

DayName (Get ( CurrentDate ))& " " & Day(Get( CurrentDate )) &" " & Left ( MonthName (Get( CurrentDate )); 3 )& " " & Year(Get ( CurrentDate ))

3) this calc must be UNSTORED to change every day

It can be stripped to NOTHING if you just type "//" on the layout, and custom-format it.

  • Author

I change the option to unstored. Day and year could change but not the month. I used a Let function and now it works fine.

Let z=(Get(GurrentDate)and if you replace z everywhere in the calculation it gives you the right script.

Pascal

Edited by Guest

  • Author

Let(shrug=(Get(Commentnotseriously))

A new FM Function!

Hi edudna,

Comment is shrugging because what you seem to be trying to achieve can be achieved with no effort at all.

FileMaker has the ability to do this without the need for a calculation.

Comment said to use // on the layout

If you do this in layout mode then switch to browse mode the current date will be displayed.

If you enter layout mode again and select the text and choose Format > Date you will see that you can easily make the date format in the way that you want with the options provided.

This will also prevent you from running into problems if the user opens your solution in a foreign language.

Let [ Comments_Informed_Advice = "Success" ]

As anyone will tell you "Get(CommentNotSeriously)" is not an available Get Function on these forums

As anyone will tell you "Get(CommentNotSeriously) " is not an available Get Function on these forums

LOL! Aint that the truth :

Stuart, :beertime:

It's OK - I don't take myself too seriously either.

  • Author

First Thank you very much for the replies and I wish you the best for the new year. You make me better anyway.

BUT BE CAREFUL OF THIS

I have tried // to express the date but you probably do not know that I will use this educational Database in Greek langauge most of it. So in Greek langauge

January is January only for the first grammatical type, because nouns have six types of expression! but they never use the first grammatical in their dates expressions, they use the second. So I make this script to change the months type to the appropriate shape. Other types of dates do not help too much. So there is a misunderstanding to comments suggestion.

Pascal

Edited by Guest

Then just use:

DayName (Get ( CurrentDate ))

& " " &

Day(Get( CurrentDate ))

& " " &

Left(MonthName ; 3)

& " " &

Year(Get ( CurrentDate ))

  • Author

In greek language January have tree grammatical types because the noun does not have plural:(I will try to explain to you in Greeklish)

FORMS OF JANUARY

1.Januarios

2.Januariou

3.Januario

Greeks use the second type but the computer use the first type. Unfortunately computer does not ajust the format of the month. I hope you can understand. This date is going to be used in official documents is not for the student records.

So I use case function to change the format of the month from the first type to the second. I hope that I use the Orthodox programming. But it works fine as an unstored calculation. I hope IE can upcode the Greek characters.

Let([z=Get(CurrentDate)];

(DayName(z) &","

& " " &

Day(z))

&" "&

Case(MonthName(z)="Ιανουάριος"; "Ιανουαρίου";

MonthName(z)="Φεβρουάριος"; "Φεβρουαρίου";

MonthName(z)="Μάρτιος"; "Μαρτίου";

MonthName(z)="Απρίλιος"; "Απριλίου";

MonthName(z)="Μάιος"; "Μαΐου";

MonthName(z)="Ιούνιος"; "Ιουνίου";

MonthName(z)="Ιούλιος"; "Ιουλίου";

MonthName(z)="Αύγουστος"; "Αυγούστου";

MonthName(z)="Σεπτέμβριος"; "Σεπτεμβρίου";

MonthName(z)="Οκτώβριος"; "Οκτωβρίου";

MonthName(z)="Νοέμβριος"; "Νοεμβρίου";

MonthName(z)="Δεκέμβριος"; "Δεκεμβρίου";

)

& " " &

Year(z))

Pascal

Edited by Guest

I'm glad your solution works and now that you've fnallyy worked out the answer, with your last post, I only now understand your scenario completely.

You see if you had said that in the first place, there would have been much less argument and everyone would have understood your question and provided you with a quick straight forward answer as opposed to guessing why you wanted to do it in the first place.

  • Author

Chinese, Japanese, Greeks and other people have difficulties with any program that is required to be programmed in English langauge. When I have to put something in the Forum a problem or an example I have to translate everything in English and give the appropriate state that thinks happen in order to understand. But I am not succesfull all the times. Anyway who is speaking Greek to understand from the first time what I want to say and create? Excuse me for any mess bring to you. As you understand it is more difficult for me to work on FM files than you do in your native language. But it is not only a matter of language as you see. How can I translate "Janouariou" in English?

Pascal

Edited by Guest

It is difficult to get people to understand, even in your own language. Your first example was very misleading, because it suggested you want to shorten the month names to 3 characters.

Anyway, I think using the Choose() function for month names would be more suited here:

... &

Choose ( Month (date) - 1 ; "Ιανουαρίου";"Φεβρουαρίου";"Μαρτίου";"Απριλίου" ; "Μαΐου" ; "Ιουνίου" ; "Ιουλίου" ; "Αυγούστου" ; "Σεπτεμβρίου" ; "Οκτωβρίου" ; "Νοεμβρίου" ; "Δεκεμβρίου" )

& ...

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.