Friday

sql convert date format

CONVERT ( data_type [ ( length ) ] , expression [ , style ] )

--T-sql convert datetime function example usage code to format date mm-dd-yyyy

SELECT CONVERT(nvarchar(30),getdate(),110)

No comments:

test smtp server with powershell

Send-MailMessage -SMTPServer smtp.domain.com -To [email protected] -From [email protected] -Subject "This is a test email" -Body ...