Re: I'm being lazy - any already built DTOS() <--> STOD() function for a form?

Author: Jeff Johnson

Posted: 2010-06-16 at 13:03:40

I placed the expression below in a procedure and call it stod(). I've

been doing it since FPD 2.0. It was Fred that gave me the idea. I keep

stod() lower case so I know it is not a VFP command.

Fred Taylor wrote:

> ?EVALUATE("+{^"+TRANSFORM("20100616","@R 9999/99/99")+"}")

>

> Fred

>

>

> On Wed, Jun 16, 2010 at 7:06 AM, Vincent Teachout <teachv@taconic.net>wrote:

>

>

>> Stephen Russell wrote:

>>

>>> I just had to play that game DTOS and STOD.

>>>

>>> Are you going to always get 8 digits in YYYY MM DD format? Or could

>>> they be a real PITA and present

>>> 2010111 and you have no idea if it is 1 Nov. or 11 Jan.

>>>

>> Nope - always in YYYMMDD format - it's for the new Govt. CMS files for

>> Medicare. Very strict layout.

>>

>>

>>

>>

--

Jeff

---------------

Jeff Johnson

jeff@san-dc.com

(623) 582-0323

www.san-dc.com

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4C1903EC.9030709@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Jeff Johnson