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.

Featured Replies

With executesql script, date Is in format MM-DD-YYYY... How May I convert It to DD/MM/YYYY?

1 minute ago, Amedeo said:

With executesql script, date Is in format MM-DD-YYYY.

Not sure what you're referring to. If you're using the ExecuteSQL() function, then you will get dates in YYYY-MM-DD format. If you want another format, you can either reformat the date in the SQL query itself or post-process the SQL result. There is also an (undocumented) option to get the dates "as entered". Which option is best for you depends on what exactly you're doing and for what purpose.

 

  • Author

ook. How may I reformat the date in the SQL query as you said?

Try:

ExecuteSQL ( 
"SELECT RIGHT(STRVAL(YourDatefield), 2) + '/' + SUBSTR(STRVAL(YourDatefield), 6, 2) + '/' + LEFT(STRVAL(YourDatefield), 4)
FROM YourTable" ; 
"" ; "" )

 

  • 3 weeks later...

there is the trick of concatenating an empty string before the field;

ExecuteSQL ( "SELECT dte FROM ...
//returns 2022-10-20

ExecuteSQL ( "SELECT ''||dte FROM ...
//returns 10/20/2022  (how it was entered)

 

Edited by rivet

Create an account or sign in to comment

Important Information

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

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.