Jump to content

ExcelReadArray Help


Recommended Posts

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?

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...