Just starting out with SQL, so there's probably a really easy answer here, but I couldn't figure out exactly what i needed to do from a google search.
There's a stored procedure in the database I'm using called dt_char_sp - simply put, the parameters are the date and time as ints, and the stored procedure formats them nicely. I would expect that it works something like this:
EXEC dt_char_sp 20130416, 024356
go
output:
04/06/2013 02:43:56
except the output doesn't happen! I see that there is a variable declared as "@datetime datetime=NULL OUTPUT" and eventually the @datetime variable is filled with the formatted string, but I'm wondering if there's a way to get this output variable?