sql server 2008 - How to SET CONVERT date and time formats with MS SQL -
i trying run following sql statement cant quite syntax right..
update [order] set [status] = 'f', [ninvoicestatus] = 1, [ntotalitemsshipped] = [ntotalitemsordered], [total lines shipped] = [total lines], [date order finished] = convert (varchar(16), getdate(),111), convert (varchar(16), getdate(),108) [status] = 'n';
my objective insert current date , time in format 'dd/mm/yyyy hh:mi:ss'
does have advice or helpful pointers? no sql expert happy try out alternative solutions or research (i have looked around net already) if pointed in right direction.
try concatenating date , time:
[date order finished] = convert (varchar(16), getdate(),111) +' '+ convert (varchar(16), getdate(),108)
Comments
Post a Comment