Changeset 16 for trunk/Packages


Ignore:
Timestamp:
Nov 15, 2012, 2:01:43 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Vkládání, úprava a mazání položek jsou nyní funkční.
Location:
trunk/Packages
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CoolWeb/Persistence/USqlDatabase.pas

    r15 r16  
    9292  function SQLToTime(Value: string): TDateTime;
    9393  function DateTimeToSQL(Value: TDateTime): string;
     94  function TimeToSQL(Value: TDateTime): string;
     95  function DateToSQL(Value: TDateTime): string;
    9496
    9597procedure Register;
     
    176178end;
    177179
     180function TimeToSQL(Value: TDateTime): string;
     181begin
     182  Result := FormatDateTime('hh.nn.ss', Value);
     183end;
     184
     185function DateToSQL(Value: TDateTime): string;
     186begin
     187  Result := FormatDateTime('yyyy-mm-dd', Value);
     188end;
     189
    178190function SQLToTime(Value: string): TDateTime;
    179191var
Note: See TracChangeset for help on using the changeset viewer.