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.

Problem reading dates with Scribe

Featured Replies

I have an excel sheet with a date 7/29/2023. When I read that cell with Scribe, and create a variable $date,  it returns the number 45136.

If I then say GetAsDate ($date), I get "?". If I further wrap it as GetAsDate ( GetAsNumber ($date ) ), I get 7/30/0124, which is obviously wrong.

  • Author

Thanks very much. That did the trick. Strange part is that the sheet was created on a Mac so the dates should have been 1904. I looked at my settings and sure enough Use 1904 had been switched off. So I turned it back on, made a new sheet, and then tried it without your formula. The results were wrong again and off by 4 years. The only way I can get it working right is to use the 1900 dates plus your formula.

59 minutes ago, jkluchnik said:

So I turned it back on, made a new sheet, and then tried it without your formula. The results were wrong again and off by 4 years.

I am afraid I don't follow. What is the raw result you get from reading a cell with a date of 7/29/2023? It should be either the date 7/29/2023 (in your FMP file's date format) or the number 43674.

 

Edited by comment

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.