최근 검색


최근 검색 없음

Date Script

답변함


2023년 8월 17일에 게시됨

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개

      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


      댓글을 남기려면 로그인하세요.

      원하는 정보를 못 찾으셨나요?

      새 게시물