By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,970 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,970 IT Pros & Developers. It's quick & easy.

Date conversion with mktime

P: 25
Hi there,

I have a date like which comes from database under variable say $logindate;
I have to convert this to formatted date with the use of mktime(function)
mktime(0,0,0,d, M, Y);

How can I do this conversion,
can you help me please?
Jun 11 '10 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 5,058
We need to see the actual format of the original date, the format you want to convert it into and your code, in order to help you.

However, I would start by looking at the strtotime and date functions. They might be able to do what you need.
Jun 11 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.