Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When you don't want time for SQL Server

Status
Not open for further replies.

mcoupal

Technical User
Jul 9, 2001
61
0
0
US
In Fox 6, I am doing a SQL passthru command to get a table's structure from SQL Server 7, making the resulting cursor modifiable, and then setting several textboxes' ControlSource to the various fields. The date field in the cursor has the long date format that includes time. I would like the textbox to be in the date-only format (excluding the time). Any suggestions?
 
Additional note: I have tried both the datetime and smalldatetime datatypes on SQL Server with no luck.
 
SQL Server doesn't have a date only data type. You'll have to convert the data using something like TTOD().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top