Re: converting a date?
- From: Matt Wills <I'm@xxxxxxxx>
- Date: Fri, 31 Aug 2007 01:00:04 GMT
This would do it, either as a separate calc field or as Replace Field Contents:
Date =
Let (
[ Da = Left ( YourDateText ; Position ( YourDateText ; "-" ; 1 ; 1 ) - 1 ) ;
Mo = Middle ( YourDateText ; Position ( YourDateText ; "-" ; 1 ; 1 ) + 1 ; 3 ) ;
Yr = Right ( YourDateText ; 2 ) ;
MoNum = Position ( " JanFebMarAprMayJunJulAugSepOctNovDec" ; Mo ; 1 ; 1 ) / 3 ] ;
MoNum & "/" & Da & "/" & Yr )
Matt
bobw@xxxxxxxxxxx wrote:
someone entered all dates in a text field in the format, "29-Sep-07"
How do I convert them all to standard FM date format, "09/29/2007"?
There are about 500 records covering several months' worth of dates.
--
Free FileMaker Technique Demos: http://www.VirtualVermont.com/FMP
My Custom Functions: http://www.briandunning.com/filemaker-custom-functions/results.php?keyword=wills
.
- Follow-Ups:
- Re: converting a date?
- From: Helpful Harry
- Re: converting a date?
- From: Matt Wills
- Re: converting a date?
- References:
- converting a date?
- From: bobw
- converting a date?
- Prev by Date: Re: rendering the # character in a Mac Open URL Script Step
- Next by Date: Re: converting a date?
- Previous by thread: converting a date?
- Next by thread: Re: converting a date?
- Index(es):
Relevant Pages
|