Posts Tagged ‘Development’

Use the following in command line to backout SVN Commits

svn merge -r<rev1>:<rev2> <location>

Example

svn merge -r4305:4307 http://svn/repo/trunk/apps

To convert string to date in java, use the following code.


public Date convertStringToDate(String dateStr)
{
   SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
   dateFormat.setLenient(false);
   
   try
   {
      return dateFormat.parse(dateStr);
   }
   catch (Exception e)
   {
      return null;
   }
}