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----------- ---------- ----------104         09/30/1998 30/09/1998104         09/30/1999 30/09/1999104         09/30/2000 30/09/2000104         09/30/2001 30/09/2001104         03/31/2000 31/03/2000104         06/30/2001 30/06/2001104         03/31/2001 31/03/2001104         12/31/1999 31/12/1999104         06/30/2000 30/06/2000104         12/31/2000 31/12/2000(10 row(s) affected)
Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS

homes in the real estate industry

Exploring the Latest Tech Trends Impacting the Real Estate Industry

The real estate industry is changing thanks to the newest technological advancements. These new developments — from blockchain and AI to virtual reality and 3D printing — are poised to change how we buy and sell homes. Real estate brokers, buyers, sellers, wholesale real estate professionals, fix and flippers, and beyond may

man on floor with data

DevX Quick Guide to Data Ingestion

One of the biggest trends of the 21st century is the massive surge in internet usage. With major innovations such as smart technology, social media, and online shopping sites, the internet has become an essential part of everyday life for a large portion of the population. Due to this internet