SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hidden input from full date (yyyy-mm-dd) to year & month (yyyy-mm) in php

    Dear All

    I have a DB with some field. There are field as deliverydate & deliveryyearmonth.

    In the deliverydate field date format is yyyy-mm-dd, now i want to input hidden value in the deliveryyaermonth field is "yyyy-mm" from the full date format for the field of deliverydate.

    Is it possible to do it in php?

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,501
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by guido2004 View Post
    Thanks, but sorry to inform you, I haven't got any good information on that link.

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,501
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by mehidy View Post
    Thanks, but sorry to inform you, I haven't got any good information on that link.
    Why? You've got a string 'yyyy-mm-dd', you want to make it 'yyyy-mm', that page explains how to do it.

    Why don't you post the code you have so far, and tell more specifically what the thing is you don't understand.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •