473,396 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

date value to epoch

i have date value in a variable. and i want to convert into epoch.who i can do this. please help me.
code look like this.
$date = "2007-05-01";
but this is not a current system date
Jun 11 '07 #1
5 1574
Purple
404 Expert 256MB
Hi,

take a look at mktime on php.net.

Purple
Jun 11 '07 #2
Motoma
3,237 Expert 2GB
Here is the link for those of you playing along at home.
Jun 11 '07 #3
Purple
404 Expert 256MB
Thanks for that Motoma,

I did wonder what the insert hyperlink did :)
Jun 11 '07 #4
Here is the link for those of you playing along at home.


hi
how r u.
thanks for it.
Jun 12 '07 #5
Motoma
3,237 Expert 2GB
hi
how r u.
thanks for it.
Glad you have found what you needed.
Jun 12 '07 #6

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

Similar topics

1
by: Jim | last post by:
Can someone tell me how the following date and time is created to the Hex value (also shown below)? Tuesday, July 08, 2003 10:56:38 AM hex:00,90,a6,7b,66,45,c3,01 I need to be able to...
17
by: | last post by:
Hello, I need to send a Java date (milliseconds since the epoch 1970-01-01 00:00:00.000 GMT) through a socket to a C++ app and reconstruct exactly the same date in the C++ app as in the Java...
4
by: Kiran | last post by:
Hi Folks, Please advise me on the conversion of EpochSeconds to DD-MMM-YYYY format in c#. given are the few examples. 1093128564 1093128537 1093128419
3
by: NateM | last post by:
How do I convert any given date into a milliseconds value that represents the number of milliseconds that have passed since January 1, 1970 00:00:00.000 GMT? Is there an easy way to do this like...
4
by: Captain Dondo | last post by:
I have a value representing seconds since epoch (the number of seconds since midnight Jan 1, 1970). I want to disply this as Month, Day, and Year: MMM-DD-YYYY. I've read about the Date()...
5
by: Summu82 | last post by:
HI I have to convert a time in the format i have year month day hour min and seconds I need to convert this into time in seconds since 1 jan 1970 i.e the
2
by: John Kelly | last post by:
Pardon me if this is a FAQ. I searched, but got far too many hits to find the answer. Question: Why is the date: Thu, 19 Nov 1981 08:52:00 GMT used as the value for anti-caching Expires:...
4
by: Holmsey | last post by:
Hi I have to convert am today's date and time (now) to a webservice. The example the web service gives was "1163313527144#" which comes out to 12/31/1969 06:00 PM. How do I convert a date to a 13...
6
by: Jeremy Sanders | last post by:
Hi - I need to add support to a program for dates and times. The built-in Python library seems to be okay for many purposes, but what I would like would be Unix epoch style times (seconds relative...
6
by: Geoff Cox | last post by:
Hello, at the moment I can add the combined date and time into MySQL using php $dt1 = date("Y-m-d H:i:s"); is it possible to add the date and time separately? I thought it might be
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.