Jump to content

Calculate how much days left to date


xdp22
 Share

Recommended Posts

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 by xdp22
Link to comment
Share on other sites

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

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...