User Login
Latest Technology Articles
- A New Dimension of PCinvent Group Business Management
- Object's assignment, storage & grabage
- C# Mutliple Dimension Syntax
- Small Business System Diagram
- C# Desktop HTTP Post Method to Web
- PHP, Java & C# Documentation Compile
- C# to Open Firefox and go to a URL
- c++ 8 Queens Chessboard Placement in One Dimension
- My Old C++ Pointer Homework
- Simple C# Code to Open and Select File in WinForm
| Deal with Date & TimeStamp Conversion for Web Programming |
|
|
| Monday, 16 June 2008 | |
|
Unix timestamp format is common seen when we need to set the date, such as creation date, modification date, available date or expiration date. Very often, we will use the time() function to generate the timestamp, for example, 1209441600.
PHP Server Side
In this case, we had a time stamp variable $cdate (Creation Date), its integer value is 1209441600.
Note that m/d/Y H:i is the format for output, you can certainly change the order to fit what you need. Very Importantly, uppercase Y will output yyyy, let say 2008. Lowercase y will output yy, let say 08.
Sometimes, we might need to convert the timestamp in a form, in that case, a convertion will be needed since JavaScript doesn't has build-in function for that. Here is the JS function I wrote to handle conversion on both side of Unix timestamp and date:
Comments (0)
![]() Write comment
Tags: Technology Programming Deal with Date & TimeStamp Conversion for Web Programming Time Stamp to Date Date to Time Stamp Unix Time to Date Date to Unix Time Time Stamp TimeStamp tool Time Stamp tool time stamp conversion |
|
| Last Updated ( Tuesday, 17 June 2008 ) |
| < Prev | Next > |
|---|




