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

GetAsText(date) always generates US format

Featured Replies

  • Author

I am trying to get a database to work in multiple countries. Working with dates has proven to be troublesome. What I find is that if I use the GetAsText(date), the result is always US format, no matter what country system the database is running on and no matter whether I use Set Use System Formats [On] or not. Is the GetAsText function simply paying no attention to the local system format, i.e. is this a bug, and just using ghe format the DB was originally created in, or am I missing something?

I am trying to get a database to work in multiple countries. Working with dates has proven to be troublesome. What I find is that if I use the GetAsText(date), the result is always US format, no matter what country system the database is running on and no matter whether I use Set Use System Formats [On] or not. Is the GetAsText function simply paying no attention to the local system format, i.e. is this a bug, and just using ghe format the DB was originally created in, or am I missing something?

  • Author

I am trying to get a database to work in multiple countries. Working with dates has proven to be troublesome. What I find is that if I use the GetAsText(date), the result is always US format, no matter what country system the database is running on and no matter whether I use Set Use System Formats [On] or not. Is the GetAsText function simply paying no attention to the local system format, i.e. is this a bug, and just using ghe format the DB was originally created in, or am I missing something?

I had sort of a similar problem: I used the function DayOfWeek(date). Here in Germany, on my German configured XP, today that would yield: 'Montag'. Then I changed the OS to speak and format all (dates, number separators, currency) in English. Still, new records created in my file would say that today is 'Montag', I expected 'Monday' of course.

I solved that by exporting the data, creating an empty clone and importing the data into that file. Then, the function correctly returned 'Monday'. Switching the OS back to German, however, revealed that the file now only gave the days in English.

It looks like that information is stored permanently in the file at the time of creation/cloning. Maybe the same goes for the date format?

I gave this info to FM Inc, who will hopefully do something about it in an updater or next version.

I had sort of a similar problem: I used the function DayOfWeek(date). Here in Germany, on my German configured XP, today that would yield: 'Montag'. Then I changed the OS to speak and format all (dates, number separators, currency) in English. Still, new records created in my file would say that today is 'Montag', I expected 'Monday' of course.

I solved that by exporting the data, creating an empty clone and importing the data into that file. Then, the function correctly returned 'Monday'. Switching the OS back to German, however, revealed that the file now only gave the days in English.

It looks like that information is stored permanently in the file at the time of creation/cloning. Maybe the same goes for the date format?

I gave this info to FM Inc, who will hopefully do something about it in an updater or next version.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.