dbTalk Databases Forums  

FileMaker 11 Date to Text

comp.databases.filemaker comp.databases.filemaker


Discuss FileMaker 11 Date to Text in the comp.databases.filemaker forum.



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

Default FileMaker 11 Date to Text - 08-15-2010 , 07:11 PM






How can I automatically change the
format from date to text in FileMaker 11
?, I could not find any script to do so.

Thanks for the help.

Gaston

Reply With Quote
  #2  
Old   
Your Name
 
Posts: n/a

Default Re: FileMaker 11 Date to Text - 08-15-2010 , 08:15 PM






In article <8cre16F53dU1 (AT) mid (DOT) individual.net>, gaston62
<gaston (AT) guiaslux (DOT) com> wrote:

Quote:
How can I automatically change the
format from date to text in FileMaker 11
?, I could not find any script to do so.

Thanks for the help.
It depends on how you want that text version of the date formatted.

If you simply want the date in the stored format (ie. dd/mm/yyyy or
mm/dd/yyyy), then I think it's the Get function in newer versions of
FileMaker.

If you want the text versions specifically formatted, then you'll have to
create your own conversion calculation. For example, to get the text as
"15 March, 2010" you woulld need to use a calculation something like:

= Day(DateField)
& " "
& MonthName(DateField)
& ", "
& Year(DateField)


Helpfull Harry )

Reply With Quote
  #3  
Old   
Lynn Allen
 
Posts: n/a

Default Re: FileMaker 11 Date to TextX-TraceApproved - 08-15-2010 , 08:29 PM



On 2010-08-15 17:11:29 -0700, gaston62 <gaston (AT) guiaslux (DOT) com> said:

Quote:
How can I automatically change the format from date to text in
FileMaker 11 ?, I could not find any script to do so.

Thanks for the help.
It's not a script, it's a function:

GetAsText(Fieldname)

Or change the field type in the field definition, if that's what you mean.

Or if you want to change the date format only, select the date field,
Control-click on it, and from the contextual menu, select "Date
Format." This is also under the Format menu.

You can select a pre-configured date format, such as "Dec 22, 2010" or
make your own custom format right there, no calculation necessary.
--
Lynn Allen
--
www.semiotics.com
Member FBA
FM 10 Certified Developer

Reply With Quote
  #4  
Old   
gaston62
 
Posts: n/a

Default Re: FileMaker 11 Date to Text - 08-15-2010 , 09:49 PM



Thank you very much to both of yours.

Gaston


On 15/08/2010 21:29, Lynn Allen wrote:
Quote:
On 2010-08-15 17:11:29 -0700, gaston62
gaston (AT) guiaslux (DOT) com> said:

How can I automatically change the
format from date to text in FileMaker
11 ?, I could not find any script to
do so.

Thanks for the help.

It's not a script, it's a function:

GetAsText(Fieldname)

Or change the field type in the field
definition, if that's what you mean.

Or if you want to change the date format
only, select the date field,
Control-click on it, and from the
contextual menu, select "Date Format."
This is also under the Format menu.

You can select a pre-configured date
format, such as "Dec 22, 2010" or make
your own custom format right there, no
calculation necessary.

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.