Klexen Posted May 6, 2009 Share Posted May 6, 2009 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 More sharing options...
BrettF Posted May 6, 2009 Share Posted May 6, 2009 $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 Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Klexen Posted May 6, 2009 Author Share Posted May 6, 2009 Wow, thanks a lot man. that was some quick help! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now