Getting current date?

Hi, 

I'm interested in calling some bespoke airdrops using fancydrop on wipeday, ideally I'd like to define a var wipeday (date format such as 03/01/2019) within some config, then check todays date matches wipeday var and execute the following:

class WipeDay : RustPlugin
    {
        void OnServerInitialized()
        {
            timer.Repeat(1800, 0, () =>
            {
                if('current date' === 'wipedate from config')
                {
                    rust.RunServerCommand("ad.massdrop 10 wipeday");
                    PrintToChat("WipeDay is upon us... ");
                    Puts("WipeDay is upon us... ");
                    return;
                }
                else 
                {
                    return;
                }
            });
        }
    }


The bit I'm struggling with is the 'current date', how to implement a config (never done this before), then how to compare the two.

Any suggestions?

 

Cheers!

Thanks @Wulf!

I've now got this: 

var currentDate = DateTime.Now.ToString("M/d/yyyy");
    if(currentDate === "3/1/2019")
    {}

How might I now store this "wipe day" var in a config, and fetch it within my plugin?  It's not the end of the world if I have to hard-code it, would just rather it live in config :)