Hi,
I am having a few problems with the formatting of dates using a SQL trigger.... I get todays date, no problem, then I add a day to it, try and format it and it comes across in a totally different format, for example...
I want the format to be 12/12/2004 and it gives me Dec 12 2004 12:00am
The code I have currently used is...
dateadd(d, 1, convert(datetime, @outputdate, 103))
Which works ok, but I just can't get it to go into my database (column is varchar)
Hope someone can help me as I feel like I am knocking my head against a wall!
Thanks
Jamie
I am having a few problems with the formatting of dates using a SQL trigger.... I get todays date, no problem, then I add a day to it, try and format it and it comes across in a totally different format, for example...
I want the format to be 12/12/2004 and it gives me Dec 12 2004 12:00am
The code I have currently used is...
dateadd(d, 1, convert(datetime, @outputdate, 103))
Which works ok, but I just can't get it to go into my database (column is varchar)
Hope someone can help me as I feel like I am knocking my head against a wall!
Thanks
Jamie