Re: Convert input to Unix Timestamp
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sun, 16 Nov 2008 14:18:00 -0500
eclipsme wrote:
Jerry Stuckle wrote:eclipsme wrote:What commands are used to 'message the format'?What is the suggested best ways to accept a date in a form that will be input into a table as a timestamp? I only care about the year-month-day, not the time.
Thank you,
Harvey
Whatever format you is most convenient for the user. You can always massage the format internally before putting it in the database.
strtotime? date()?
Thanks,
Harvey
It entirely depends on the format you get your data in.
The problem is - you're asking the wrong question. The first question should be - "What is the most user-friendly way to get the date?". This answer can easily vary, depending on the rest of your page (and site).
Once you have that, your next question can then be "How do I convert this to a format which is acceptable by the database?".
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: Convert input to Unix Timestamp
- From: eclipsme
- Re: Convert input to Unix Timestamp
- References:
- Convert input to Unix Timestamp
- From: eclipsme
- Re: Convert input to Unix Timestamp
- From: Jerry Stuckle
- Re: Convert input to Unix Timestamp
- From: eclipsme
- Convert input to Unix Timestamp
- Prev by Date: Re: Convert input to Unix Timestamp
- Next by Date: Re: Convert input to Unix Timestamp
- Previous by thread: Re: Convert input to Unix Timestamp
- Next by thread: Re: Convert input to Unix Timestamp
- Index(es):
Relevant Pages
|