Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Update 'column' to date datatype

If a column is not in date datatype but the inserted values in that columns are as date type. and you want to update that column in date type but without loosing values in that column. You can use the following query- UPDATE `tbl` SET `date1` = ST

How to search records with maximum and minimum limit in MySQL

DELIMITER $$ DROP PROCEDURE IF EXISTS GetCustomerSearchResult$$ CREATE DEFINER=root@% PROCEDURE GetCustomerSearchResult( criteria INT ,searchValue VARCHAR(500) ,MinLimit INT ,MaxLimit INT ) BEGIN CASE WHEN criteria=1 /*search b

Checking the date entered is according to a predefined format or not ?

Checking the date entered by the user correct of not as according to a predefined format or not. Example 1) $format = 'd-m-Y'; $input = 'asasasawasa-sldjs'; $date = DateTime::createFromFormat($format, $input); if($date) echo 'The Date you

Change Column data-type from VARCHAR to DATE

Hello friends, I am here for share the solution of a MySQL problem. If you want to change the data type of a column from varchar or any other one to date, you should need to use following query- UPDATE `tbl` SET `date1` = STR_TO_DATE(`date1`, '%d-%

How to extract today's date & time in Rails

If you want to extract only the date, we can use the strftime method of Time/Date class, as 2.1.5 :055 > DateTime.now.strftime('%d/%m/%Y') => "12/30/2015" (Here d is used to display date, m displays month and Y display the year in 4-dig

How to take Backup of MYSQL Database file and upload it on Dropbox Account?

Hello, I am sharing here how we can take backup of our Project mysql database file and upload it in our Dropbox Account. Advantage using this feature is we can store our database backup in our Dropbox account daily. We can set our script as a cron

How to add Calendar control to Alloy UI form in Liferay

Here we can show how you can add the calendar control in your Alloy UI form. The below example explains how you can put your calendar control on textarea in your Alloy UI form. Example: <script> YUI().use( 'aui-datepicke

How to convert Unix time stamp into date time using PHP

Hello Reader's! If you have the time stamp in unix time and you need to convert them into Date time format Then you can use the diffrent ways of doing this in PHP Let's say the example below:- $timestamp=1455070324; echo gmdate("Y-m-d\TH:i:s\Z", $

Convert one date format into another in PHP

Date play an important role in any project. We have to change date format according to our need. If we are using PHP 5.2 and lower then for changing date format we have to parse the elements (year, month, day, hour, minute, second) manually using sub

How to Use Services in Android Simple Example

Using Services In Android Service is an application component which runs in the background and do not have a user interface.Services can be of two forms:: Started Service can be started from an application component such as Activity

prev 1 3
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: