Format Date Snippets


Handy helper function which parses about any date and returns the same date in MySQL date/time format.

Change Date from dd/mm/yyyy to yyyy-dd-mm

By default, Delphi gets its date/time, currency and numeric format from Control Panel's International settings. We can set the constants defined in Delphi, like DecimalSeparator, ShortDateFormat and others like in the code below. To a complete list of these variables, look at Currency and date/time formatting variables in Delphi Help.

16 November, 2013   

This function lets you check whether an date event should recur on a specified date. This is handy for calendar, billing and reminder applications.

26 November, 2015   

Show the currently active processes.

23 December, 2015   

It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.

03 November, 2011   

Here are some simple examples of using the functions with your variables. Run these from any ".asp" page and watch what happens

15 November, 2012   

This program has two input checks: one for a blank card to indicate end-of-data, and the other for a zero value within the input data. Either condition causes a message to be printed.

19 December, 2012   

How to convert a java util Date into a sql Date for use in databases.

19 December, 2012   

Example shown here how to convert String to Date in Java

19 October, 2011   

An example to check Weekend

23 January, 2013   

Returns the number of the quarter containing a given date.

11 October, 2011   

In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....

15 February, 2012   

PHP code to displaying the current date in an HTML page.

23 April, 2011   

Below is a basic feedback form script 'feedback.asp'. You can add your own validation. Once the visitor has filled in all the form textfields an email will be sent with the feedback details including the date and time and the visitor's IP address to the email specified in the script.

20 February, 2012   

SQL select query to show records with specify date in where clause

09 October, 2011   

Example shows how to get the database date and time.

31 December, 2011   

How to create a procedure for date calculation

Finds all scene elements that belong to missing plugins, original code by Larry Minton

26 December, 2011   

Example PHP code to navigate calender in HTML pages