Japanese Date in this format

后端 未结 5 1470
醉酒成梦
醉酒成梦 2020-12-17 23:52

I\'m wanting show the Date in Japanese in this format:

2010年2月18日(木)

which translates to:

February 18, 2010 (Thu)

in PHP

This is the

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-18 00:29

    This post is pretty old, but in case someone is still looking for an answer, this worked well for me:

    setlocale(LC_ALL, "ja_JP.utf8"); 
    $date_format = "%Y年%B%e日(%a)";                  
    
    $date_string = strftime($date_format, time())
    

提交回复
热议问题