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.

Determine Date Format

Featured Replies

Is there a method to determine date format.

 

1. Machine region is set to 'Canada': yyyy-mm-dd

2. I figure I would set variable = Date ( 1 ; 1-1 ; 2014 ),  which displays '2013-12-31'

3. Now I need to get that as a string but no luck I always get:  '12/31/2014'

 

I am off track?

 

 

End goal:

a. determine the cursor position ( m, d or y ) in date field, which I have solved I am now just trying to have my script region independent.

b. avoid a custom function 

 

 

 

If

GetAsText ( Date ( 1 ; 0 ; 2014 ) )

returns '12/31/2013', then your file is not using the yyy-mm-dd date format

I believe if your region is set to Canada the format would be MM/DD/YYYY.

  • Author

Here are my settings.... I will test on different machine

 

post-57376-0-13842500-1417564247_thumb.p

Your data viewer shows different results for =

Date ( 1 ; 0 ; 2014 )

and =

GetAsText ( Date ( 1 ; 0 ; 2014 ) )

I believe this means that:

 

1. Your system's short date format is yyyy-mm-dd;

2. The file is set to use the current system's settings (under File Options > Text > Data Entry);

but:

3. The file's saved settings are mm/dd/yyyy.

 

This is a bug, and the best way to avoid it is to clone the file under the current system.

  • Author

a bug indeed..... cloning did the trick thank you.

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.