> From: "VanBuskirk, Patricia" <
[hidden email]>
> Reply-To: <
[hidden email]>
> Date: Wed, 19 Nov 2008 15:10:22 -0500
> To: <
[hidden email]>
> Conversation: Forcing leading zeros
> Subject: RE: Forcing leading zeros
>
> Thanks Steve AND Stephen!
>
> Instead of trying to work it into all the scripts, I made a new
> calculated field:
>
> Right ( "00" & Month ( Get ( CurrentDate ) ) ; 2 ) & Right ( "00" & Day
> ( Get ( CurrentDate ) ) ; 2 ) & Year ( Get ( CurrentDate ) )
>
> I made it a global field ... do I need to make it an unstored calculated
> field in order for it to update each day, or will this way do it too?
>
> Trish
>
> -----Original Message-----
> From:
[hidden email]
> [mailto:
[hidden email]] On Behalf Of Steve
> Hearn
> Sent: Wednesday, November 19, 2008 3:07 PM
> To: FileMaker Experts
> Subject: Re: Forcing leading zeros
>
> This method extracts the month, day and year values from the current
> date
> (your calc is correct) and puts them all in one text string. Separators
> like
> "/" or "-" are stripped out unless the calc explicitly puts them in.
>
> For instance:
> Right ( "00" & Month ( Get ( CurrentDate ) ) ; 2 ) & "/" &
> Right ( "00" & Day ( Get ( CurrentDate ) ) ; 2 ) & "/" &
> Year ( Get ( CurrentDate ) )
>
> ------------------------------------------------
> Steve Hearn
> :: FileMaker 9 Certified Developer ::
> FileMaker Technologies Team Leader
> CoreSolutions Development Inc.
> Web Site:
http://www.coresolutions.ca> London: (519) 641-7727 - Toronto: (416) 410-8649
> ------------------------------------------------
> software that works for you
>
>
>> From: "VanBuskirk, Patricia" <
[hidden email]>
>> Reply-To: <
[hidden email]>
>> Date: Wed, 19 Nov 2008 14:55:48 -0500
>> To: <
[hidden email]>
>> Conversation: Forcing leading zeros
>> Subject: RE: Forcing leading zeros
>>
>> So this might work?
>>
>> Right ( "00" & Month ( Get ( CurrentDate ) ) ; 2 ) & Right ( "00" &
> Day
>> ( Get ( CurrentDate ) ) ; 2 ) & Year ( Get ( CurrentDate ) )
>>
>> Also, right now I have it stripping out the "/" ... do I have to worry
>> about that anymore using this method?
>>
>>
>>
>> -----Original Message-----
>> From:
[hidden email]
>> [mailto:
[hidden email]] On Behalf Of Steve
>> Hearn
>> Sent: Wednesday, November 19, 2008 2:51 PM
>> To: FileMaker Experts
>> Subject: Re: Forcing leading zeros
>>
>> Yes, you can do the auto-enter calc and have it replace existing data.
>>
>> To format your dates for that export you'll need to put it together:
>>
>> Right ( "00" & Month ( dateField ) ; 2 ) & Right ( "00" & Day (
>> dateField )
>> ; 2 ) & Year ( dateField )
>>
>> By habit, I add as many zeroes as digits I'm capturing in case the
> value
>> I'm
>> padding is empty. In this case that won't happen unless the entire
> date
>> field is empty.
>>
>> ------------------------------------------------
>> Steve Hearn
>> :: FileMaker 9 Certified Developer ::
>> FileMaker Technologies Team Leader
>> CoreSolutions Development Inc.
>> Web Site:
http://www.coresolutions.ca>> London: (519) 641-7727 - Toronto: (416) 410-8649
>> ------------------------------------------------
>> software that works for you
>>
>>
>>> From: "VanBuskirk, Patricia" <
[hidden email]>
>>> Reply-To: <
[hidden email]>
>>> Date: Wed, 19 Nov 2008 14:40:10 -0500
>>> To: <
[hidden email]>
>>> Conversation: Forcing leading zeros
>>> Subject: RE: Forcing leading zeros
>>>
>>> Can I do an auto-enter calc on the field using Right ( "0" & SELF ;
> 2)
>> ?
>>>
>>> -----Original Message-----
>>> From:
[hidden email]
>>> [mailto:
[hidden email]] On Behalf Of Steve
>>> Hearn
>>> Sent: Wednesday, November 19, 2008 2:36 PM
>>> To: FileMaker Experts
>>> Subject: Re: Forcing leading zeros
>>>
>>> Almost. Try Right ( "0" & number ; 2 )
>>>
>>>
>>> ------------------------------------------------
>>> Steve Hearn
>>> :: FileMaker 9 Certified Developer ::
>>> FileMaker Technologies Team Leader
>>> CoreSolutions Development Inc.
>>> Web Site:
http://www.coresolutions.ca>>> London: (519) 641-7727 - Toronto: (416) 410-8649
>>> ------------------------------------------------
>>> software that works for you
>>>
>>>
>>>> From: Lorne & Joan Walton <
[hidden email]>
>>>> Reply-To: <
[hidden email]>
>>>> Date: Wed, 19 Nov 2008 11:31:34 -0800
>>>> To: <
[hidden email]>
>>>> Subject: Re: Forcing leading zeros
>>>>
>>>> Make it a text field, Right ( number & "0" ; 2 )
>>>
>>> _______________________________________________
>>> FMPexperts mailing list
>>>
[hidden email]
>>>
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au>>> _______________________________________________
>>> FMPexperts mailing list
>>>
[hidden email]
>>>
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au>>
>> _______________________________________________
>> FMPexperts mailing list
>>
[hidden email]
>>
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au>> _______________________________________________
>> FMPexperts mailing list
>>
[hidden email]
>>
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au>
> _______________________________________________
> FMPexperts mailing list
>
[hidden email]
>
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au> _______________________________________________
> FMPexperts mailing list
>
[hidden email]
>
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au