SA-MP Forums Archive
Is Date passed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is Date passed (/showthread.php?tid=626378)



Is Date passed - MerryDeer - 14.01.2017

Hi,

I have specific date ex:

2018-05-01

How in timer check is this date is passed?


Re: Is Date passed - SyS - 14.01.2017

No need to use that you can use getdate function

https://sampwiki.blast.hk/wiki/Getdate

Pass three variables as reference to this function and do the checking numerically.


Re: Is Date passed - BiosMarcel - 14.01.2017

*Cough* Totally not advertising my stuff *Cough*

i think i catched a cold

You could use something like this: https://github.com/Bios-Marcel/DateU...r/DateUtil.inc

This is not for strings though, but you could split the strings to get the single variables!