dbTalk Databases Forums  

Date field convert/export as formatted text

comp.databases.filemaker comp.databases.filemaker


Discuss Date field convert/export as formatted text in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve@ASU
 
Posts: n/a

Default Date field convert/export as formatted text - 12-05-2009 , 10:18 PM






I've got a date field that is formatted to display a date as "Day of
Week, Month Day, Year" (such as "Saturday, December 5, 2009"). I want
to export that field so it reads that way, but all I ever get when I
try to export is the MM/DD/YYYY format. Any suggestions?

Reply With Quote
  #2  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Date field convert/export as formatted text - 12-06-2009 , 02:09 AM






Steve@ASU <redrock2512 (AT) gmail (DOT) com> wrote:

Quote:
I've got a date field that is formatted to display a date as "Day of
Week, Month Day, Year" (such as "Saturday, December 5, 2009"). I want
to export that field so it reads that way, but all I ever get when I
try to export is the MM/DD/YYYY format. Any suggestions?
The date is a number, and it's this number that gets exportet The export
file doesn't know how a field was formatted in FMP. Format the field in
the app that reads your export file.

If the date is part of a text, you can create a calc field, text result
and use the date functions to write the date the way you want to see it.
--
http://clk.ch

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

Default Re: Date field convert/export as formatted text - 12-06-2009 , 10:28 AM



On Dec 6, 1:09*am, c... (AT) tele2 (DOT) ch (Christoph Kaufmann) wrote:
Quote:
Steve@ASU <redrock2... (AT) gmail (DOT) com> wrote:
I've got a date field that is formatted to display a date as "Day of
Week, Month Day, Year" (such as "Saturday, December 5, 2009"). I want
to export that field so it reads that way, but all I ever get when I
try to export is the MM/DD/YYYY format. Any suggestions?

The date is a number, and it's this number that gets exportet The export
file doesn't know how a field was formatted in FMP. Format the field in
the app that reads your export file.

If the date is part of a text, you can create a calc field, text result
and use the date functions to write the date the way you want to see it.
--http://clk.ch
Chris,

Does this work for the reverse - where if I'm importing data from a
spreadsheet with a date field, can I setup a date function on import
as well? I've got several spreadsheets with date/time stamps on them
that I'd like to preserve, but when the data comes in, it only shows
the numeric value and not the date value, even though the field is
setup as a date or time.

TIA.

Brian

Reply With Quote
  #4  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Date field convert/export as formatted text - 12-06-2009 , 11:42 AM



ibgarrett <brian (AT) garrett (DOT) net> wrote:

Quote:
Does this work for the reverse - where if I'm importing data from a
spreadsheet with a date field, can I setup a date function on import
as well? I've got several spreadsheets with date/time stamps on them
that I'd like to preserve, but when the data comes in, it only shows
the numeric value and not the date value, even though the field is
setup as a date or time.
In Filemaker, a date is the number of days since Jan 1st, 0001, time is
the number of seconds since midnight, and a timestamp is the number of
seconds sind midnight on Jan 1st, 0001. If you want to see a really huge
number, try the ReadAsNumber function on a timestamp field.

Other applications may have (and do have) different ways to store date
and time information. I once had an Excel version that counted from Jan
1st, 1900, don't know if this is the case in your spreadsheet app - view
dates as numbers to find out.

The safest way is to take the spreadsheet data apart, i.e. create a
speficic column for day, month, year, hour, minutes and seconds, then
import all that in filemaker number fields and have filemaker functions
put them together the way you want it.

If you want to this more directly, it's try and error. I've seen
Filemaker reading dates from an Excel sheet correctly, but things may be
different in different versions, apps and systems.
--
http://clk.ch

Reply With Quote
  #5  
Old   
ibgarrett
 
Posts: n/a

Default Re: Date field convert/export as formatted text - 12-06-2009 , 01:44 PM



On Dec 6, 10:42*am, c... (AT) tele2 (DOT) ch (Christoph Kaufmann) wrote:
Quote:
ibgarrett <br... (AT) garrett (DOT) net> wrote:
Does this work for the reverse - where if I'm importing data from a
spreadsheet with a date field, can I setup a date function on import
as well? *I've got several spreadsheets with date/time stamps on them
that I'd like to preserve, but when the data comes in, it only shows
the numeric value and not the date value, even though the field is
setup as a date or time.

In Filemaker, a date is the number of days since Jan 1st, 0001, time is
the number of seconds since midnight, and a timestamp is the number of
seconds sind midnight on Jan 1st, 0001. If you want to see a really huge
number, try the ReadAsNumber function on a timestamp field.

Other applications may have (and do have) different ways to store date
and time information. I once had an Excel version that counted from Jan
1st, 1900, don't know if this is the case in your spreadsheet app - view
dates as numbers to find out.

The safest way is to take the spreadsheet data apart, i.e. create a
speficic column for day, month, year, hour, minutes and seconds, then
import all that in filemaker number fields and have filemaker functions
put them together the way you want it.

If you want to this more directly, it's try and error. I've seen
Filemaker reading dates from an Excel sheet correctly, but things may be
different in different versions, apps and systems.
--http://clk.ch
Chris,

That kind of what I figured I was going to have to do, the unfortunate
part is the data I'm getting in is coming from an Access db that I'm
working on converting to FM via a spreadsheet. The data has been very
poorly managed up until now, so I'm working on getting it cleaned up
before and import into FMP. The date stamp converts over to a unique
4 digit (if I remember correctly) number. So I just need to figure
out how to crack that part of the import to preserve that bit of
information.

Thanks for the advice on it.

Brian

Reply With Quote
  #6  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Date field convert/export as formatted text - 12-06-2009 , 03:28 PM



Steve@ASU wrote:
Quote:
I've got a date field that is formatted to display a date as "Day of
Week, Month Day, Year" (such as "Saturday, December 5, 2009"). I want
to export that field so it reads that way, but all I ever get when I
try to export is the MM/DD/YYYY format. Any suggestions?


Go to a layout where that date field resides. Format the field on that
layout in the desired format. When exporting, select the option to
export using the current layout.

Or...create a calc field with text result that formats the field the way
you want it and then just export that text field.

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.