2014-02-05 silvioprog :
> 2014-02-04 Marco van de Voort :
>
> In our previous episode, silvioprog said:
>> > Worked with:
>> >
>> > var
>> > t: TDateTime;
>> > begin
>> > t := StrToDateTime('2013-02-04 11:39:54');
>> > end;
>> >
>> > sorry, I forgot to use the function StrToDateTime. :S
>>
>>
2014-02-04 Marco van de Voort :
> In our previous episode, silvioprog said:
> > Worked with:
> >
> > var
> > t: TDateTime;
> > begin
> > t := StrToDateTime('2013-02-04 11:39:54');
> > end;
> >
> > sorry, I forgot to use the function StrToDateTime. :S
>
> Or use
>
> http://www.freepascal.org/do
2014-02-04 waldo kitty :
> On 2/4/2014 8:54 AM, silvioprog wrote:
>
>>t := StrToDate('2013-02-04 11:39:54'); // to format -mm-dd hh:nn:ss
>>
>
> the above is StrToDate but you are also sending the time... you would see
> similar if you were sending the above string to StrToTime...
>
> StrT
On 2/4/2014 8:54 AM, silvioprog wrote:
t := StrToDate('2013-02-04 11:39:54'); // to format -mm-dd hh:nn:ss
the above is StrToDate but you are also sending the time... you would see
similar if you were sending the above string to StrToTime...
StrToDate only accepts date formats as StrT
In our previous episode, silvioprog said:
> Worked with:
>
> var
> t: TDateTime;
> begin
> t := StrToDateTime('2013-02-04 11:39:54');
> end;
>
> sorry, I forgot to use the function StrToDateTime. :S
Or use
http://www.freepascal.org/docs-html/rtl/dateutils/scandatetime.html
2014-02-04 Dimitrios Chr. Ioannidis :
> Hi,
>
> Στις 4/2/2014 3:54 μμ, ο/η silvioprog έγραψε:
>
> Hello,
>>
>> I'm using this configuration:
>>
>> initialization
>> DefaultFormatSettings.DateSeparator := '-';
>> DefaultFormatSettings.TimeSeparator := ':';
>> DefaultFormatSettings.ShortDateFormat
Hi,
Στις 4/2/2014 3:54 μμ, ο/η silvioprog έγραψε:
Hello,
I'm using this configuration:
initialization
DefaultFormatSettings.DateSeparator := '-';
DefaultFormatSettings.TimeSeparator := ':';
DefaultFormatSettings.ShortDateFormat := '-mm-dd';
DefaultFormatSettings.ShortTimeFormat := 'hh:nn:s