hello,i am editing a program for e-ticketing.and i am having a hard time figuring out on how will i convert time into am/pm..in the process of buying ticket,we have to choose time departure and if its am or pm,then the problem is i dont know how will i put it into sentence.. thanks
vinryyesha 0
Newbie Poster
Recommended Answers
Jump to PostIf you have a date and a time such as 2010-08-24 18:00 you can first convert this to a (unix) time stamp with the strtotime command. You can then use that time stamp in the date command to convert it to whatever display format you need:
$timestamp …
All 4 Replies
chrishea 182
Nearly a Posting Virtuoso
vinryyesha 0
Newbie Poster
chrishea 182
Nearly a Posting Virtuoso
vinryyesha 0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.