Correct date format for SQL

106 13
Date values in SQL is always saved in "MM/DD/YY(YY)" format.

Here's a line of code to get the string in the correct format for SQL:

FormatDateTime('mm"/"dd"/"yyyy', Now)

Delphi tips navigator:
» Delphi application that copies itself
« Kylix - Execute an application

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.