Sign in to follow this  
Followers 0
Klexen

ExcelReadArray Help

3 posts in this topic

When reading cells to array... It has a problem reading 07/08/05 or any other date formated like that.. It turns into 20050708000000. Is there anyway I can make it keep the 07/08/05 format?

Share this post


Link to post
Share on other sites



$date = "20050708000000"

$year = StringMid ($date, 1, 4)
$day = StringMid ($date, 5, 2)
$mon = StringMid ($date, 7, 2)

MsgBox (0, "", "Year = " & $year & @CRLF & "Day = " & $day & @CRLF & "Month = " & $mon)

Cheers

Brett

Share this post


Link to post
Share on other sites

Wow, thanks a lot man. that was some quick help!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0