On Mon, Aug 24, 2009 at 3:53 AM, Mark Stanton<m...@vowleyfarm.co.uk> 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 _______________________________________________ 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/ef6149f60908250703r1fe2a1a3p9001862a7b898...@mail.gmail.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.