• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • LedgerLink
  • Bugs

Non US Date Fields

Brought to you by: tjpsoftware
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Tickets ▾
    • Feature Requests
    • Bugs
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v1.0_(example)

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#2 Non US Date Fields

v1.0_(example)
open
nobody
Interface (example) (1)
5
2004-06-04
2004-06-04
Anonymous
No

Hi

This is safer date conversion function:

procedure TLLDateField.internalFromXML(strValue: string);
var
year, month, day: string;
begin
strvalue := trim(strValue);
year := copy(strValue, 1, 4);
month := copy(strvalue, 6, 2);
day := copy(strvalue, 9, 2);
AsDate := EncodeDate(strtoint(year), strtoint(month),
strtoint(day));
// AsDate := StrToDate(Format('%s/%s/%s', [month, day,
year]));
end;

Andrew

Discussion


Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise