Click here to Skip to main content
16,016,669 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

How would I convert this bigint to a date.

`note_creation_timestamp` bigint(20) DEFAULT NULL COMMENT 'timestamp of the creation of user''s note',


<small>Added: <?= $value->note_creation_timestamp; ?></small>


I want it to look like this format

Added: Jan 11, 2017

What I have tried:

Not sure how to do it. which is why I'm asking here.
Posted
Updated 6-Feb-17 8:51am
Comments
j snooze 1-Feb-17 17:33pm    
you could try something like this
date("M DD, y", bigintvaluehere);
Mohibur Rashid 2-Feb-17 18:48pm    
Read this document
http://php.net/manual/en/function.date.php
Member 11838038 2-Feb-17 7:21am    
Added: <?= date("M d, Y", $value-> note_creation_timestamp); ?> Does this look right?

1 solution

Added:
PHP
<?= date("M d, Y", $value-> note_creation_timestamp); ?>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900