# ✂ Rextended Fragments of Snippets

**URL:** <https://forum.mikrotik.com/t/rextended-fragments-of-snippets/151033>\
**Category:** Scripting\
**Created:** [August 12, 2021, 12:44pm UTC](https://forum.mikrotik.com/t/rextended-fragments-of-snippets/151033 "2021-08-12T12:44:26Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [November 18, 2022, 11:55am UTC](https://forum.mikrotik.com/t/rextended-fragments-of-snippets/151033/22 "2022-11-18T11:55:35Z")

</div>

Current date and time as string (Also week day name, if the year is bissextile, and Unix Epoch time)

> [@Changing the MMM/DD/YYYY date format.](http://forum.mikrotik.com/t/changing-the-mmm-dd-yyyy-date-format/5183/10):
>
> Something… simpler? simpler version: (compatible also with new date format on RouterOS 7.10+) :global simplercurrdatetimestr do={ /system clock :local vdate [get date] :local vtime [get time] :local vdoff [:toarray "0,4,5,7,8,10"] :local MM [:pick $vdate ($vdoff-\>2) ($vdoff-\>3)] :local M [:tonum $MM] :if ($vdate ~ ".../../....") do={ :set vdoff [:toarray "7,11,1,3,4,6"] :set M ([:find "xxanebarprayunulugepctovecANEBARPRAYUNULUGEPCTOVEC" [:…

---

_[View the full topic](https://forum.mikrotik.com/t/rextended-fragments-of-snippets/151033)._
