hosted by liquidweb


Go Back   Web Hosting Talk : Other Forums : Web Hosting Lounge : Need a trick to change/replace date
Reply

Web Hosting Lounge Forum for general conversation, share interests, have a laugh or discuss topics not related to the above or below forums.
Forum Jump

Need a trick to change/replace date

Reply Post New Thread In Web Hosting Lounge Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-20-2000, 01:42 AM
Santana
Guest
 
Posts: n/a
Hello,

Anyone has any trick to replace text?
I have 5,000 data with | delimiter, and the field Date contains date-mon-year (ie. 19-Jul-2000)

and need to replace them with the following format:
year-mo-date (ie. 2000-07-19)

anyone has a trick to do it in microsoft word or anyword processor or maybe in mySQL query command?

thanks

Reply With Quote
Sponsored Links
  #2  
Old 11-20-2000, 02:49 AM
etLux etLux is offline
Web Hosting Master
 
Join Date: Oct 2000
Location: Moldavia
Posts: 1,177
Ouch.

Maybe post this over in software help.

I think you could probably cook a macro in Word or possibly even trick Excel into doing it with a cell format change -- but this isn't really my end of Creation.

Old codeheads like me would probably write a script to do it... lol.

__________________
etLux
CodeLifter.com Free JavaScript

Reply With Quote
  #3  
Old 11-20-2000, 03:15 AM
kunal kunal is offline
Web Hosting Master
 
Join Date: Aug 2000
Posts: 2,750
Whats the connection between MySQL and Ms Word?

__________________
The Php Support Desk
http://www.phpsupportdesk.com
Custom programming - kunal @ e-phoria.com
http://www.pingzine.com - Ping!Zine. the FREE, FRESH and EXCITING Web Hosting Magazine...

Reply With Quote
Sponsored Links
  #4  
Old 11-20-2000, 03:33 AM
Santana
Guest
 
Posts: n/a
What I need to do is just replacing the date format and then export them to the mySQL table.

I don;t know how to change it using mySQL query, so I just though the primitive way LOL


Quote:
Originally posted by kunal
Whats the connection between MySQL and Ms Word?

Reply With Quote
  #5  
Old 11-20-2000, 03:38 AM
kunal kunal is offline
Web Hosting Master
 
Join Date: Aug 2000
Posts: 2,750
Lol.. oh ok.. well I would recomend that you should first move it all to mysql and then make the changes. Then the changes would be easy.

__________________
The Php Support Desk
http://www.phpsupportdesk.com
Custom programming - kunal @ e-phoria.com
http://www.pingzine.com - Ping!Zine. the FREE, FRESH and EXCITING Web Hosting Magazine...

Reply With Quote
  #6  
Old 11-20-2000, 04:23 AM
inwks inwks is offline
Junior Guru
 
Join Date: Sep 2000
Location: London, UK
Posts: 214
Load into Excel, reformat the field you want to change, and save as the desired format. Usually works.

Reply With Quote
  #7  
Old 11-20-2000, 01:40 PM
Wazeh Wazeh is offline
Aspiring Evangelist
 
Join Date: Sep 2000
Posts: 389
It can probably be done easily with awk. If your file
is on a unix box, why don't you post or email me a sample (1 record) and I will see what needs to be done to reformat it. Or, if you are adventurous, type 'man awk' and enjoy

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Hosting Sales and Promos Roundup - November 9, 2012 Web Hosting News 2012-11-09 17:35:02
Weekend Reading: Top Web Hosting News from July 30 - August 3, 2012 Web Hosting News 2012-08-03 17:35:10
Navigating Your Business Through Change with Elliot Noss - HostingCon 2012 Web Hosting News 2012-07-17 09:51:18
Microsoft Offers Details on Leap Day Azure Outage, Compensates Customers Web Hosting News 2012-03-12 13:17:57
Three Surefire Ways to Really Juice Your Business Blog 2011-07-11 20:47:42


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?