Date conversion with mktime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bandy
    New Member
    • Mar 2010
    • 25

    Date conversion with mktime

    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 )
    like:
    mktime(0,0,0,d, M, Y);


    How can I do this conversion,
    can you help me please?
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    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.

    Comment

    Working...