Skip to content
WJunction - Webmaster Forum

How to auto insert "/" in sql code or excel?

Status
Not open for further replies.

MediaStar

Distinguished Member
2,674
2010
446
Capture.png


Guys i need some help. As u can see my image 'DODATE' column display date '20130901', '20130902' etc..

Is there any sql script how to make the date auto display like this format '2013/09/01', i need '/' symbol.

Or any function in excel to auto change all data in 'DODATE' column from '2013xxxx' to '2013/xx/xx'?
 

1 comment

in mysql i would do it like
Code:
 SELECT field1, field2, DATE_FORMAT(STR_TO_DATE(DODATE, '%Y%m%d'), '%Y/%m/%d'), field4 , etc FROM etc......
 
Status
Not open for further replies.

About the author

M
Distinguished Member · Joined
2,674
Messages
446
Reactions
83
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom