Title: date format user meta data
Last modified: July 1, 2021

---

# date format user meta data

 *  Resolved [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/date-format-user-meta-data/)
 * Hi,
 * Right now the date in the user meta field “when_last_login” is stored as a big
   number. Is there a way to get this as a date format?
 * Best regards,
    Olga

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/date-format-user-meta-data/#post-14615665)
 * We store it as a timestamp, when retrieving the usermeta you may use the date_i18n
   or date PHP functions to format it to a readable date.
 * I hope this helps get you started.
 *  Thread Starter [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/date-format-user-meta-data/#post-14668130)
 * Hi [@andrewza](https://wordpress.org/support/users/andrewza/)
 * Sorry for my late reply.
    I want to use the date in a html table, unfortunately
   I am not able to use PHP functions in there. I believe there is no other way 
   to output this value then?
 * Best regards,
    Olga
 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/date-format-user-meta-data/#post-14897583)
 * Sorry Olga, this slipped by me. You would need to use PHP to convert the timestamp
   to a specific date format.
 * You would use PHP (get_user_meta) to get the value and in the same function, 
   you then can cast it to date format when echoing it out.
 * I recommend reaching out to a local WordPress developer for assistance here. 
   There’s no way to retrieve data from the WordPress database that relies on HTML
   code only.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘date format user meta data’ is closed to new replies.

 * ![](https://ps.w.org/when-last-login/assets/icon-256x256.png?rev=1665438)
 * [When Last Login](https://wordpress.org/plugins/when-last-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/when-last-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/when-last-login/)
 * [Active Topics](https://wordpress.org/support/plugin/when-last-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/when-last-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/when-last-login/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/date-format-user-meta-data/#post-14897583)
 * Status: resolved