Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 96
  • Last Modified:

Excel Dates issue

Hi. I have a list of 800 dates in Excel that I am trying to load to a database. The problem
is that most dates are not recognized as dates using the "IsDate" function unless
I manually type the date like the first one in the list. How can I convert all these dates
so my code recognizes them as dates?

28 September 2010
17/05/2010
01/09/2010
17/11/2010
20/07/2009
0
Murray Brown
Asked:
Murray Brown
3 Solutions
 
Rgonzo1971Commented:
Hi,

You could type 1 in another cell,  copy it and paste special Multiply to convert them to dates

Regards
0
 
SteveCommented:
you could convert the dates to '234' notation using TEXT which seems to be easily read by databases etc...

=TEXT(CellWithDate,"dd mmm yyyy")
0
 
Rob HensonIT & Database AssistantCommented:
Steve, to get the full date as per the example given, you would need "dd mmmm yyyy".

"dd mmm yyyy" would only give "28 Sept 2010" rather than "28 September 2010".

Thanks
Rob H
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thank you all for the help
0
 
SteveCommented:
rob, my suggestion wasn't to get to the full date, but to a date which tends to be accepted on uploads.
The '234' date format is not effected by region and seems to work on almost any upload, being recognised as a date.
I tend to use it in most up-down transfers.
(but yes, 244 is just as valid, but takes up unnecessary space)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now