Skip to main content

change Jquery Datepicker format

So stuck with the stupid requirment of the mysql table to pass the argument as '2011-09-09'

haha! its very simple try this:

$('#pickdate').datepicker({dateFormat: 'yy-mm-dd'});
where pickdate is the name of the attribute. 

Comments

Popular posts from this blog

Difference between is_file and file_exists

If you want to know that the argument supplied is a file or not use is_file() file_exists() will take both file and directory as input and return true if they exists. So, unless you specifically want to check if the argument passed is a file use is_file otherwise use file_exists()

CGI Environment Variables

So here goes the list of all the Environment variables that are inbuilt and can be used with ur CGI script: Variable Name Value DOCUMENT_ROOT The root directory of your server HTTP_COOKIE The visitor's cookie, if one is set HTTP_HOST The hostname of your server HTTP_REFERER The URL of the page that called your script HTTP_USER_AGENT The browser type of the visitor HTTPS "on" if the script is being called through a secure server PATH The system path your server is running under QUERY_STRING The query string (see GET, below) REMOTE_ADDR The IP address of the visitor REMOTE_HOST The hostname of the visitor (if your server has reverse-name-lookups on; otherwise this is the IP address again) REMOTE_PORT The port the visitor is connected to on the web server REMOTE_USER The visitor's username (for .htaccess-protected pages) REQUEST_METHOD GET or POST REQUEST_URI The interpreted pathname of the requested document or CGI (relative to the document root) SC...

15 things that you should give up to be happy

1. Give up your need to always be right.  There are so many of us who can’t stand the idea of being wrong – wanting to always be right – even at the risk of ending great relationships or causing a great deal of stress and pain, for us and for others. It’s just not worth it. Whenever you feel the ‘urgent’ need to jump into a fight over who is right and who is wrong, ask yourself this question:  “Would I rather be right, or would I rather be kind?” Wayne Dyer. What difference will that make? Is your ego really that big? 2. Give up your need for control.  Be willing to give up your need to always control everything that happens to you and around you – situations, events, people, etc. Whether they are loved ones, coworkers, or just strangers you meet on the street – just allow them to be. Allow everything and everyone to be just as they are and you will see how much better will that make you feel. “By letting it go it all gets done. The world is won by those who let it...