Jump to content

Forums

Search In
  • More options...
Find results that contain...
Find results in...

Date time format


Recommended Posts

I am trying to format the date time on the personnel page.  

{datetime="$soldier->enlistment_date" dateonly="YES"}

I tried to modify that to 

{datetime="$soldier->enlistment_date->format('d F, Y')"}

Which does, in fact change the date, but it changes it to some random date that is not accurate.  Like Dec 31, 1969 or something. 

 

I would like the enlistment date to be displayed as 00 - Month - Year. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.