Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5953 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am importing data from a barcode reader. The bar code reader application can generate output in various formats. I have tried csv and xls. The problems i have is that the text file shows the timestamp for the barcode as hh:mm:ss mm/dd/yyyy. When i import this into excel it converts it to mm/dd/yyyy hh:mm:ss which if I import this file works with my calculated fields. If I import staight from the file the calculations fail. Below is a line from the import file.

I guess there are 2 solutions

1. Get the import to reverse the order to work with my calcs.

2. Create a calculation that swaps the data around.

Any ideas

Posted (edited)

Someone that is more familiar with how the Bar Code process works, might have a simpler way to do it, but you could create two fields, one for time and one for date and parse it out using GetASTime and GetASDate

GetAsTime ( LeftWords ( Text ; 1 ))

GetAsDate ( RightWords ( Text ; 1 ))

HTH

Lee

Edited by Guest
Posted

I vote for number 2 using the following calculation to convert the BarCode time stamp to a FileMaker time stamp. ('TextField' is the imported time stamp):

Timestamp ( GetAsDate ( RightWords( TextField; 1 ) ) ; GetAsTime ( LeftWords( TextField; 1 ) ) )

This topic is 5953 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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