<?php $year = 2022; $formatter = new IntlDateFormatter( 'zh-CN@calendar=chinese', IntlDateFormatter::SHORT, IntlDateFormatter::NONE, 'Europe/Berlin', IntlDateFormatter::TRADITIONAL ); $timeStamp = $formatter->parse($year.'/01/01'); $dateTime = date_create()->setTimeStamp($timeStamp); echo $dateTime->format('j F Y'); //1 February 2022
You have javascript disabled. You will not be able to edit any code.