cacti
+ Reply to Thread
Results 1 to 6 of 6

Thread: Date and time by PHP

  1. #1
    Join Date
    Jun 2011
    Posts
    8

    Date and time by PHP

    Date and time by PHP

    i am new in php but i have created the below code on my webpage to show the date, but its not working.
    i want to see a simple format of date and time.want to know why?




    Code:
    <?php
        date_default_timezone_set('UTC');
        echo date("l");
        echo date('l jS \of F Y h:i:s A');
        echo "July *, 2000 is on a " . date("l", mktime(0, 0, 0, 7, *, 2000));
        echo date("DATE");
        echo date(DATE_ATOM, mktime(0, 0, 0, 7, *, 2000));
        ?>
    [url=http://www.waytovietnam.com]Vietnam travel[/url]-[url=http://www.thailandtoursbooking.com]Thailand tours[/url]-[url=http://www.hotelincanes-france.com]Canes Hotels[/url]

  2. #2
    Join Date
    Jun 2012
    Posts
    0
    you can enter in string form

  3. #3
    Join Date
    Jun 2012
    Posts
    52
    I have no idea about php if you have any knowledge tell me.

  4. #4
    Join Date
    Jul 2012
    Posts
    2
    i know some php but i am not like php

  5. #5
    Join Date
    Aug 2012
    Posts
    9
    I think PHP is a server side language. It does not have any UI so that user could pick date. You have to use javascript libraries like jquery.
    [URL="http://www.openxcell.com/internet-technologies/open-source-ecommerce/magento-development-india/hire-magento-developer.html"]Magento Web Developer[/URL] | [URL="http://www.openxcell.com/internet-technologies/open-source-ecommerce/magento-development-india.html"]Magento Development India[/URL] | [URL="http://www.openxcell.com/magento-seo-services.html"]Magento Seo Services[/URL]

  6. #6
    Join Date
    Aug 2012
    Posts
    1

    Date and time by PHP

    Dates are so much part of everyday life that it becomes easy to work with them without thinking. PHP also provides powerful tools for date arithmetic that make manipulating dates easy.

+ Reply to Thread

Similar Threads

  1. changing date
    By danyal in forum General discussion
    Replies: 1
    Last Post: 01-09-2010, 03:25 PM
  2. Hotmail - changing time & date?
    By Ratta in forum Internet Privacy
    Replies: 2
    Last Post: 10-31-2007, 08:11 PM
  3. Unlock The Software With Time And Date Encryption
    By Sudhir Sharma in forum Programming
    Replies: 2
    Last Post: 06-17-2007, 06:21 PM
  4. Last login date to say...
    By Johnny125 in forum Internet Privacy
    Replies: 0
    Last Post: 09-16-2006, 04:40 PM

Posting Permissions

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