Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Date Script

Beantwortet


Gepostet 17. Aug. 2023

Hello,

Im trying to have the date displayed in this format: mmddyy

Im using this script:

{% capture today %}{{'now' | date:'%s' | minus:0600| date:'%m%d%Y'}}{% endcapture %}{{today}}

but I dont know how to make the year two digits. any tips?


0

2

2 Kommentare

      Nevermind...i figured it out...just use lowercase y

      0


      Monica Cruz I believe you can just change Y (year with century) to y (year without century), i.e. 

      {% capture today %}{{'now' | date:'%s' | minus:0600| date:'%m%d%y'}}{% endcapture %}{{today}}

      0


      Anmelden, um einen Kommentar zu hinterlassen.

      Sie finden nicht, wonach Sie suchen?

      Neuer Post