Date format in CSV file

Greetings,

I have the format in a same column of 'dd-mm-yyyy' and 'dd/mm/yyyy' in a csv file.
How to format it all to dd-mm-yyyy format?

Thanks.
mrongAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MacroShadowCommented:
Open the file
Select the column
Right click
Cell format
Set the format to dd-mm-yyyy
0
duncanb7Commented:
On Excel Sheet, select the cell or range cell you want, press ctrl+1, select date, choose
the format you want from scrolling the side bar
check at the Microsoft  atricle as follows
http://office.microsoft.com/en-001/excel-help/format-a-date-the-way-you-want-HA102809474.aspx


Duncan
0
mrongAuthor Commented:
MacroShadow,

I tried this at very beginning but it put data from 'dd/mm/yyyy' to 'mm-dd-yyyy'
Thanks.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

mrongAuthor Commented:
duncanb7,

Followed the link you provided and it also put data from 'dd/mm/yyyy' to 'mm-dd-yyyy'.

I defined the custom format as 'dd-mm-yyyy'.

thanks.
0
duncanb7Commented:
There is custom item at the bottom of the left-hand-side-menu , click it, and
choose dd-mm-yyyy or type dd-mm-yyyy in the input box at Category

Duncan
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
working with excel to "fix" csv data is not the best tool for the job.
first of all: where does the data come from... usually the issue should be fixed "at the very first source"

for a one-time job, I would write a small whatever(*) script to change the relevant / into -

(*) could be a vba macro, vbscript, a vb6, C#, php ...
in short: anything that you are comfortable with, to do a quick "read line by line", and do a replace.
in unix worlds, this could be a quick awk script...
0
duncanb7Commented:
type dd-mm-yyyy in the input box at Category after clicking custom

Be reminded, work around , you will get it  

Duncan
0
mrongAuthor Commented:
duncanb7,

I don't see custom item at the bottom of the left-hand-side-menu.

I use office 2013.
0
duncanb7Commented:
check at the image once you press ctrl+1 kry ( ctrl with 1)
http://officeimg.vo.msecnd.net/en-001/files/678/453/ZA102841669.jpg

At Categroy, there is item such as number, date.....custom
and At the "Type", type dd-mm-yyyy

Be remined select the cell or range you want first

Duncan
0
mrongAuthor Commented:
Duncan,

Yes, I did exactly same as you suggest but it shows format of 'mm-dd-yyy' format.
0
duncanb7Commented:
how about you type mm-dd-yyyy into the box

What is diffferent result when type dd-mm-yyy and mm-dd-yyyy

Two tests, try it , work around, you will get it

Duncan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mrongAuthor Commented:
it still show dd-mm-yyyy for some records.
0
mrongAuthor Commented:
Sorry, too early to say.
That fixes the issue.
0
duncanb7Commented:
Thanks for your points

Have a nice day

Duncan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.