rajeshontheweb Posted April 1, 2009 Share Posted April 1, 2009 (edited) i have a text in this format Input 15 Feb 2009 16:47 :0500 Output dd = 15, mmm = feb , yyyy = 2009 , hh = 16; mm = 47; ssss = 0500 i need it to be formatted as date or even if i get it as an array of texts i am ok thanks a lot in advance. because i am working my mind on something else and i think there will be enough minds here to do it in seconds. :-) Edited April 1, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
rajeshontheweb Posted April 1, 2009 Author Share Posted April 1, 2009 (edited) got it already :-) Func _Str2Date($InputString) Local $OutPutDate[6] $InputString = "15 Feb 2009 16:47 :0500" While 1 ; trim spaces if there are any , at the start. If StringMid($InputString,1,1)= " " Then StringTrimLeft($InputString,1) Else ExitLoop EndIf WEnd $OutPutDate[0] = Number(StringMid($InputString,1,2)) $OutPutDate[1] = StringMid($InputString,4,3) $OutPutDate[2] = Number(StringMid($InputString,8,4)) $OutPutDate[3] = Number(StringMid($InputString,13,2)) $OutPutDate[4] = Number(StringMid($InputString,16,2)) $OutPutDate[5] = Number(StringMid($InputString,20,4)) Return $OutPutDate EndFunc Edited April 1, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet 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