GrungeRocker Posted May 21, 2005 Posted May 21, 2005 hi! if i have made sth like this: $Datum = GuiCtrlCreateDate("Date4", 90, 60, 190, 20, $DTS_SHORTDATEFORMAT) $date = guictrlread($datum) $date is like thi: dd.mm.yyyy but how could i make it, that its like: yyyy/mm/dd, so that i can use _datediff ? [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]
Developers Jos Posted May 21, 2005 Developers Posted May 21, 2005 hi!if i have made sth like this:$Datum = GuiCtrlCreateDate("Date4", 90, 60, 190, 20, $DTS_SHORTDATEFORMAT) $date = guictrlread($datum)$date is like thi: dd.mm.yyyybut how could i make it, that its like: yyyy/mm/dd, so that i can use _datediff ?<{POST_SNAPBACK}>$t = StringSplit($date,'.') $Date = $t[3] & "/" & $t[2] & "/" $t[1] SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
jpm Posted May 21, 2005 Posted May 21, 2005 hi!if i have made sth like this:$Datum = GuiCtrlCreateDate("Date4", 90, 60, 190, 20, $DTS_SHORTDATEFORMAT) $date = guictrlread($datum)$date is like thi: dd.mm.yyyybut how could i make it, that its like: yyyy/mm/dd, so that i can use _datediff ?<{POST_SNAPBACK}>read example 3 in the doc. does that help?
GrungeRocker Posted May 21, 2005 Author Posted May 21, 2005 ok thank you! i didnt think of splitting the string -.- [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]
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