dbTalk Databases Forums  

yy/mm/dd

comp.databases.filemaker comp.databases.filemaker


Discuss yy/mm/dd in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JohnB
 
Posts: n/a

Default yy/mm/dd - 02-23-2007 , 04:24 PM






I am importing from an Excel spreadsheet (created from a JDE report)
that stores its dates as yy/mm/dd.

Is there an easy way to convert this into mm/dd/yy in Filemaker?

Any help would be appreciated.

Regards...John B


Reply With Quote
  #2  
Old   
Helpful Harry
 
Posts: n/a

Default Re: yy/mm/dd - 02-23-2007 , 06:14 PM






In article <1172269459.621715.270750 (AT) k78g2000cwa (DOT) googlegroups.com>,
"JohnB" <bilecky (AT) excite (DOT) com> wrote:

Quote:
I am importing from an Excel spreadsheet (created from a JDE report)
that stores its dates as yy/mm/dd.

Is there an easy way to convert this into mm/dd/yy in Filemaker?

Any help would be appreciated.

Regards...John B
If the Excel dates are being imported into a Text field as yy/mm/dd,
then you can have a calculation using the Date function to obtain a
correct date:

Date (Middle(IncomingDate, 4, 2),
Right(IncomingDate, 2),
2000 + Left(IncomingDate, 2)
)

The Date function work in American format of Date(Month, Day, Year).

This assumes two things:

- that there is ALWAYS two digits for the day, month and year,

- ALL years are from 2000 onwards.

If there isn't always two digits, then you need a calculation that is a
little more complicated and usues the position of the "/" characters to
work out what the numbers are:

Date(Date(Middle(IncomingDate, Position(IncomingDate, "/", 1, 1)
+ 1, Position(IncomingDate, "/", 1, 2) -
Position(IncomingDate, "/", 1, 1)),
Right(IncomingDate, Length(IncomingDate)
- Position(IncomingDate, "/", 1, 2)),
2000 + Left(IncomingDate, Position(IncomingDate,
"/" , 1, 1) -1)
)

Whichever calculation you use, it can be either a Calculation field
(with Date result) or an Auto-enter calculation for a normal Date field
(as long as you remember to Perform Auto-enter calculations when
importing the data).



Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #3  
Old   
JohnB
 
Posts: n/a

Default Re: yy/mm/dd - 02-23-2007 , 11:47 PM



Thanks, Harry. That did it.

Regards...JohnB

On Feb 23, 7:14 pm, Helpful Harry <helpful_ha... (AT) nom (DOT) de.plume.com>
wrote:
Quote:
In article <1172269459.621715.270... (AT) k78g2000cwa (DOT) googlegroups.com>,

"JohnB" <bile... (AT) excite (DOT) com> wrote:
I am importing from an Excel spreadsheet (created from a JDE report)
that stores its dates as yy/mm/dd.

Is there an easy way to convert this into mm/dd/yy in Filemaker?

Any help would be appreciated.

Regards...John B

If the Excel dates are being imported into a Text field as yy/mm/dd,
then you can have a calculation using the Date function to obtain a
correct date:

Date (Middle(IncomingDate, 4, 2),
Right(IncomingDate, 2),
2000 + Left(IncomingDate, 2)
)

The Date function work in American format of Date(Month, Day, Year).

This assumes two things:

- that there is ALWAYS two digits for the day, month and year,

- ALL years are from 2000 onwards.

If there isn't always two digits, then you need a calculation that is a
little more complicated and usues the position of the "/" characters to
work out what the numbers are:

Date(Date(Middle(IncomingDate, Position(IncomingDate, "/", 1, 1)
+ 1, Position(IncomingDate, "/", 1, 2) -
Position(IncomingDate, "/", 1, 1)),
Right(IncomingDate, Length(IncomingDate)
- Position(IncomingDate, "/", 1, 2)),
2000 + Left(IncomingDate, Position(IncomingDate,
"/" , 1, 1) -1)
)

Whichever calculation you use, it can be either a Calculation field
(with Date result) or an Auto-enter calculation for a normal Date field
(as long as you remember to Perform Auto-enter calculations when
importing the data).

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.