 <p>A variety of hacks:</p> <ul> <li>Convert your string to a datetime, then back again using the optional "style" parameter to <code>convert</code> to convert your datetime to a string using just the date portion</li> <li>use <code>substring</code> to chop off the end</li> <li>round the datetime using <code>floor</code></li> </ul>