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

I have inherited a database and need to be able to calculate a student's current age. I wanted to just do a simple calc: (Today-DOB)/365. However, there is no DOB field. Instead, there is MonthofBirth, DayofBirth, and YearofBirth, all three of them text fields. I tried to write a calc: MonthofBirth &"/"& DayofBirth &"/"& YearofBirth, but it doesn't work.

What is the best way to get Current Age out of this?

Thanks,

Susan

I didn't test this, but off of the top of my head this should work.

Date(Month(MonthofBirth), Day(DayofBirth), Year( YearofBirth))

HTH

Lee

  • Author

Thanks, but this doesn't work....

This fields look like this:

MonthofBirth, text, data=04

DayofBirth, text, data=01

YearofBirth, text, data=1966

So I want to end up with a date field that looks like this: 04/01/1966

Thanks again.

Susan

MonthofBirth, text, data=04

DayofBirth, text, data=01

YearofBirth, text, data=1966

Date(MonthofBirth, DayofBirth, YearofBirth) should lead you there ?

That's funny, it works for me.

What didn't work for you, the leading zeros. If so, you may have to adjust the Date format at the layout level.

Lee confused.gif

  • Author

Yes, this works...Date(MonthofBirth, DayofBirth, YearofBirth)...don't know what I was doing before ooo.gif Thanks.

Susan

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.