/ Published in: SQL
These statements convert a date/time field into just a date or a time field
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
CONVERT(VARCHAR(10), "Enter Date/time field/parameter", "format type") Example: CONVERT(VARCHAR(10), GETDATE(), 101) Formats: "101" selects DATE "108" selects TIME