Here's one that doesn't require VFP9:

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

Fred


On Tue, Aug 25, 2009 at 7:03 AM, Dave Thayer <[email protected]> wrote:

> On Mon, Aug 24, 2009 at 3:53 AM, Mark Stanton<[email protected]>
> wrote:
> > Is there really no VFP function that is the reverse of DTOS?
> >
> > DTOS turns <date> into "YYYYMMDD". I can break it apart manually and
> > put it back together as a date, but it's a bit laborious.  Nothing
> > already inside?
> >
>
> If you're using VFP9 here's a one-liner that seems to do the trick:
>
> ldDate = Cast(Transform(lcDateString, "@R xxxx-xx-xx") as date)
>
> --
> Dave Thayer
> Denver, CO
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
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/[email protected]
** 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.

Reply via email to