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.

Covert date script

Featured Replies

This is my situation at the present moment. In my database I have a single date field that reads as such 7/09/2004, then I have three new date fields, one for the month, day, and year. I need to convert the information in the old date field, into the three new date fields for 16,000 records.

Any info would be greatly appreciated!

Are your three new date fields defined as true date fields? Or are they number or text fields? Is the original single date field defined as a true date field?

In general, assuming this is a one-time data fix, I would run three replace-with-calculations on your three target fields. Each one would have a calculation that specified exactly which part of the data in the originating field is to be replaced into the target field. For example, the calculation for the year would be:

Right(OriginalDateField, 4)

Picking out the month and day depends on how the fields are defined, as per my opening questions.

Warning: Back up data first, and experiment on a clone with a couple dozen records. The replace function cannot be undone.

Steved Brown

  • Author

The three new date fields are defined as text, and the original single date field is defined as true date field.

You can extract the pieces with:

Use The Shadow's functions, embedded in a DateToText function to replace the info into your text fields (you may not need this, but it couldn't hurt):

DateToText(Month(dateField)), etc.

Steve Brown

What are you going to DO with these fields? If it's just for display purposes, you don't need to do any of this. You can just take the data field, copy it 3 times across your layout, and set the date options to display just what you asked for with the format:date format: custom option.

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.