On Sun, May 27, 2012 at 2:26 AM, Doug Edmunds <dougedmu...@gmail.com> wrote:

> Hello,
>
> How do I convert a string in the format
> yyyy-mm-dd to a DateTime variable?
>
> StrToDateTime('2012-05-26', ????); // what goes there?//
>

writeln(StrToDateTime('2012-05-26'));


>
>
> -dae
>
>
>
> --
> ______________________________**_________________
> Lazarus mailing list
> Lazarus@lists.lazarus.**freepascal.org<Lazarus@lists.lazarus.freepascal.org>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to