
Format the Given Date into a Required Date Format
You can change the given format into the required date format using the CONVERT Function. Here’s an example: companyid peo———– ———–104 1998-09-30104 1999-09-30104 1999-12-31104 2000-03-31104 2000-06-30104 2000-09-30104 2000-12-31104 2001-03-31104 2001-06-30104 2001-09-30(10 row(s) affected)’///////////////////////////////////select distinct companyid ,CONVERT(char(10) , peo ,101) Style1,CONVERT(char(10) , peo ,103) Style2 from fintabdatamin where companyid=104companyid Style1 Style2———–