xdp22 Posted August 20, 2011 Share Posted August 20, 2011 (edited) Hello, can someone help me with "XXX Days left to date - 17.09.2011" I tried : $data = "17.09.2011" $z = StringSplit( $data, ".") $dzien = $z[1] $miesiac = $z[2] $rok = $z[3] $dniu = $dzien - @MDAY $miesiaca = $miesiac - @MON $roku = $rok - @YEAR But don't know what next Edited August 20, 2011 by xdp22 Link to comment Share on other sites More sharing options...
hannes08 Posted August 20, 2011 Share Posted August 20, 2011 Hi xdp22, you can use _DateDiff() to calculate the difference. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Link to comment Share on other sites More sharing options...
UEZ Posted August 20, 2011 Share Posted August 20, 2011 Look in the help file: #include <Date.au3> $iDateCalc = _DateDiff( 'd', _NowCalc(), "2011/09/17 00:00:00") MsgBox( 4096, "", "Days left to 2011/09/17: " & $iDateCalc) Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
xdp22 Posted August 20, 2011 Author Share Posted August 20, 2011 O.O TY! 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