Community discussions

MikroTik App
 
User avatar
water35
just joined
Topic Author
Posts: 6
Joined: Thu Jan 03, 2019 4:38 pm

How to get current system date and time to a variable ?

Sun Jan 06, 2019 8:11 pm

How to get current system date and time to a variable ?

Thanks.
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1070
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: How to get current system date and time to a variable ?

Sun Jan 06, 2019 10:58 pm

Both to one variable?
:global DateTime ([ / system clock get date ] . " " . [ / system clock get time ]);
If you want each in one varaiable:
:global Date [ / system clock get date ];
:global Time [ / system clock get time ];

Who is online

Users browsing this forum: GoogleOther [Bot] and 78 guests