dbTalk Databases Forums  

Date to day

comp.databases.filemaker comp.databases.filemaker


Discuss Date to day in the comp.databases.filemaker forum.



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

Default Date to day - 12-21-2006 , 01:33 AM






I have a field "Date" and a field "Day"
I want the "day" field to look at the "date" field and
put the correct day of the week in
How?
Thanks
Terry



Reply With Quote
  #2  
Old   
Ursus
 
Posts: n/a

Default Re: Date to day - 12-21-2006 , 05:32 AM






Open the helpfile and look for day or date functions

Ursus

"Terry Cano" <tcmusic (AT) pacbell (DOT) net> schreef in bericht
news:GNqih.39369$qO4.10568 (AT) newssvr13 (DOT) news.prodigy.net...
Quote:
I have a field "Date" and a field "Day"
I want the "day" field to look at the "date" field and
put the correct day of the week in
How?
Thanks
Terry





Reply With Quote
  #3  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: Date to day - 12-21-2006 , 06:25 AM



I am with Ursus, but I'd add that you should try to avoid naming your fields
with the names of FileMaker functions.
Remi-Noel

"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> a écrit dans le message de news:
458a70c0$0$93183$dbd43001 (AT) news (DOT) wanadoo.nl...
Quote:
Open the helpfile and look for day or date functions

Ursus

"Terry Cano" <tcmusic (AT) pacbell (DOT) net> schreef in bericht
news:GNqih.39369$qO4.10568 (AT) newssvr13 (DOT) news.prodigy.net...
I have a field "Date" and a field "Day"
I want the "day" field to look at the "date" field and
put the correct day of the week in
How?
Thanks
Terry







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

Default Re: Date to day - 12-21-2006 , 08:35 AM



Just use the same field... date. Put 2 of them on your layout and
format one date to be the day only "Thursday", and the other to the
date format you want "12/21/2006".

It's the same field, so the day shown will always be the correct
weekday.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Reality is the leading cause of stress...
....amongst those in touch with it.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
WinXP Pro 64Bit / FMP Adv 8.5v1
VoicesInMyHead
a.k.a. The Voices
No, we're not... Yes, we are...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Terry Cano wrote:
Quote:
I have a field "Date" and a field "Day"
I want the "day" field to look at the "date" field and
put the correct day of the week in
How?
Thanks
Terry


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

Default Re: Date to day - 12-21-2006 , 02:02 PM



In article <1166711744.048038.246600 (AT) 79g2000cws (DOT) googlegroups.com>,
"VoicesInMyHead" <voices.imh (AT) gmail (DOT) com> wrote:

Quote:
Terry Cano wrote:
I have a field "Date" and a field "Day"
I want the "day" field to look at the "date" field and
put the correct day of the week in
How?

Just use the same field... date. Put 2 of them on your layout and
format one date to be the day only "Thursday", and the other to the
date format you want "12/21/2006".
Or even the more correct "21/12/2006". ;o)



Quote:
It's the same field, so the day shown will always be the correct
weekday.
That is the easiest way (and one often over-looked even by long-time
users), but if you actually need the day for other purposes then a
simple Calculation field will give the result.
ie.
DayforDate = DayofWeek(DateField)

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


Reply With Quote
  #6  
Old   
Terry Cano
 
Posts: n/a

Default Re: Date to day - 12-21-2006 , 04:53 PM



Thanks -
I think I got it
Happy Holidays
Terry
"Helpful Harry" <helpful_harry (AT) nom (DOT) de.plume.com> wrote

Quote:
In article <1166711744.048038.246600 (AT) 79g2000cws (DOT) googlegroups.com>,
"VoicesInMyHead" <voices.imh (AT) gmail (DOT) com> wrote:

Terry Cano wrote:
I have a field "Date" and a field "Day"
I want the "day" field to look at the "date" field and
put the correct day of the week in
How?

Just use the same field... date. Put 2 of them on your layout and
format one date to be the day only "Thursday", and the other to the
date format you want "12/21/2006".

Or even the more correct "21/12/2006". ;o)



It's the same field, so the day shown will always be the correct
weekday.

That is the easiest way (and one often over-looked even by long-time
users), but if you actually need the day for other purposes then a
simple Calculation field will give the result.
ie.
DayforDate = DayofWeek(DateField)

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



Reply With Quote
  #7  
Old   
Terry Cano
 
Posts: n/a

Default Re: Date to day - 12-21-2006 , 07:34 PM



Ok. I think Dayname is what I need is a script?
get data in "date field" put in the field named "day" and use Dayname?
Is that close
"Terry Cano" <tcmusic (AT) pacbell (DOT) net> wrote

Quote:
Thanks -
I think I got it
Happy Holidays
Terry
"Helpful Harry" <helpful_harry (AT) nom (DOT) de.plume.com> wrote in message
news:221220060902216416%helpful_harry (AT) nom (DOT) de.plume.com...
In article <1166711744.048038.246600 (AT) 79g2000cws (DOT) googlegroups.com>,
"VoicesInMyHead" <voices.imh (AT) gmail (DOT) com> wrote:

Terry Cano wrote:
I have a field "Date" and a field "Day"
I want the "day" field to look at the "date" field and
put the correct day of the week in
How?

Just use the same field... date. Put 2 of them on your layout and
format one date to be the day only "Thursday", and the other to the
date format you want "12/21/2006".

Or even the more correct "21/12/2006". ;o)



It's the same field, so the day shown will always be the correct
weekday.

That is the easiest way (and one often over-looked even by long-time
users), but if you actually need the day for other purposes then a
simple Calculation field will give the result.
ie.
DayforDate = DayofWeek(DateField)

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





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

Default Re: Date to day - 12-21-2006 , 11:22 PM



In article <iCGih.27041$Ga1.21502 (AT) newssvr12 (DOT) news.prodigy.net>, "Terry
Cano" <tcmusic (AT) pacbell (DOT) net> wrote:

Quote:
Ok. I think Dayname is what I need is a script?
get data in "date field" put in the field named "day" and use Dayname?
Is that close
Sorry, DayName will give you the text words "Monday", "Tuesday", etc.
while DayofWeek will give you the number of the day (eg. 3 for
"Tuesday" or 6 for "Friday").

DayforDate = DayName(DateField)

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


Reply With Quote
  #9  
Old   
Matt Wills
 
Posts: n/a

Default Re: Date to day - 12-22-2006 , 05:43 AM



Nobody mentioned script.

As Harry described, put the same date field on the layout twice.

Format one to display the date as date, format the other the display date as day name. FileMaker Help does describe how to do this quite well.

Personally, I would probably not bother with two versions. I would use just one field formatted to display both the day name and the date all in one whack, but that's just me.

Matt

On 12/21/2006 20:34:06 "Terry Cano" <tcmusic (AT) pacbell (DOT) net> wrote:

Quote:
Ok. I think Dayname is what I need is a script? get data in "date field"
put in the field named "day" and use Dayname? Is that close "Terry Cano"
tcmusic (AT) pacbell (DOT) net> wrote in message
news:RfEih.27027$Ga1.2298 (AT) newssvr12 (DOT) news.prodigy.net...

Thanks - I think I got it Happy Holidays Terry "Helpful Harry"
helpful_harry (AT) nom (DOT) de.plume.com> wrote in message
news:221220060902216416%helpful_harry (AT) nom (DOT) de.plume.com...

In article <1166711744.048038.246600 (AT) 79g2000cws (DOT) googlegroups.com>,
"VoicesInMyHead" <voices.imh (AT) gmail (DOT) com> wrote:

Terry Cano wrote:

I have a field "Date" and a field "Day" I want the "day" field to look
at the "date" field and put the correct day of the week in How?

Just use the same field... date. Put 2 of them on your layout and
format one date to be the day only "Thursday", and the other to the
date format you want "12/21/2006".

Or even the more correct "21/12/2006". ;o)

It's the same field, so the day shown will always be the correct
weekday.

That is the easiest way (and one often over-looked even by long-time
users), but if you actually need the day for other purposes then a
simple Calculation field will give the result. ie. DayforDate =
DayofWeek(DateField)

Helpful Harry Hopefully helping harassed humans happily handle handiwork
hardships

;o)

Reply With Quote
  #10  
Old   
Terry Cano
 
Posts: n/a

Default Re: Date to day - 12-22-2006 , 10:33 AM



Yeah I should have thought of that to.
It is cool everything works - No Script
Thanks
To all
"Matt Wills" <Im (AT) witz (DOT) end> wrote

Quote:
Nobody mentioned script.

As Harry described, put the same date field on the layout twice.

Format one to display the date as date, format the other the display date
as day name. FileMaker Help does describe how to do this quite well.

Personally, I would probably not bother with two versions. I would use
just one field formatted to display both the day name and the date all in
one whack, but that's just me.
Quote:
Matt

On 12/21/2006 20:34:06 "Terry Cano" <tcmusic (AT) pacbell (DOT) net> wrote:

Ok. I think Dayname is what I need is a script? get data in "date
field"
put in the field named "day" and use Dayname? Is that close "Terry Cano"
tcmusic (AT) pacbell (DOT) net> wrote in message
news:RfEih.27027$Ga1.2298 (AT) newssvr12 (DOT) news.prodigy.net...

Thanks - I think I got it Happy Holidays Terry "Helpful Harry"
helpful_harry (AT) nom (DOT) de.plume.com> wrote in message
news:221220060902216416%helpful_harry (AT) nom (DOT) de.plume.com...

In article <1166711744.048038.246600 (AT) 79g2000cws (DOT) googlegroups.com>,
"VoicesInMyHead" <voices.imh (AT) gmail (DOT) com> wrote:

Terry Cano wrote:

I have a field "Date" and a field "Day" I want the "day" field to
look
at the "date" field and put the correct day of the week in How?

Just use the same field... date. Put 2 of them on your layout and
format one date to be the day only "Thursday", and the other to the
date format you want "12/21/2006".

Or even the more correct "21/12/2006". ;o)

It's the same field, so the day shown will always be the correct
weekday.

That is the easiest way (and one often over-looked even by long-time
users), but if you actually need the day for other purposes then a
simple Calculation field will give the result. ie. DayforDate =
DayofWeek(DateField)

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.