DateTime Conversions in Objective C

Here are some commonly used  date time conversions that I wanted in my programming life with Objective C.

Convert the NSString object to a NSDate object

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"RequiredDateFormat"];
NSDate *dateTime = [dateFormatter dateFromString:@“YourDate”];

Convert the NSDate object to a NSString object

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"RequiredDateFormat"];
NSString *currentDateTime = [dateFormatter stringFromDate:[NSDate date]];

Change the timeZone and dateFormat of a NSString dateTime (more…)


Things that you should aware before you facing your first interview as a trainee Software Engineer

All these things here i’m gonna share with you all by the experience and feedbacks i got from my first mock-interview with DirectFN.I hope these points will help you for your first interview as well.

First and most importantly you should have a proper Resume

  • Make sure you put a proper photo of your self and it should be taken recently.Do not let them to ask “Is this really you” when you facing your interview.The photo is really want to be a professional(Some organisations doesn’t really concern about this but some companies really do) and presentable because that’s the very first impression they get about yourself and that can be a reason for you to not to go away from the selection process.
  • Use professional fonts and Never keep your font size less than 10.


Table View Cells Directing to Multiple Views [For Beginners]

Today we are going to learn how to make app like table view cells directing to multiple views.

Basically the application will look like the below image and when we select one of the cell it will direct to another view which we want with a navigation controller.


Gawaravila Planes and Gartmore Falls

Routine : Colombo -> Hatton -> Maskeliya -> Gartmore States and Walk 😀

Great place to camp in the plane since water and wood is there and it has a really good view  of Sri Padaya.


Enjoy the video!! (more…)

Hike to Knuckles and Meemure

The Knuckles Mountain Range lies in central Sri Lanka, in the Districts of Matale and Kandy. The range takes its name from a series of recumbent folds and peaks.


There are several ways to start this hike but we chosen that by Gomare and it took around 4 to 5 hours to go to the top of the mountain and we camped their for the first night.


List Application using Core Data [For Beginners]

In this tutorial we are gonna learn how to make list app using core data where you can take any notes keep in your application.

I assume that now you have already setup your Xcode environment and all set to go for a project.

So start a new project

Create a new Xcode project -> Single view application -> Name it as ListApp and make sure you check the Use core data and keep the language as Swift and Device as Universal. (more…)

Getting Started with Swift [For Beginners]

In this article we are starting to learn about iOS programming with swift

Swift 😮 ??

Swift is a general-purpose, multi-paradigm, compiled programming language created for iOS, OS X, watchOS, tvOS and Linux development by Apple Inc. Swift is designed to work with Apple’s Cocoa and Cocoa Touch frameworks and the large body of existing Objective-C code written for Apple products. (more…)

How to add a gif Animation to your Java programme

Guys this small tutorial is about how to add an any kind of a animation at the beginning or anywhere of your java programme.This will give a really good look for your project for sure.

So first you’ll have to make your own gif file first.I’ll give show you the way of how to do that kind of a thing 🙂

Step 1 : First you have to create your logo or whatever the thing you want to show using photoshop.

7This is what i have made for my mp3 player 😛


How to insert data from a JTable into a Database

So guys today i’ll show you how to insert data from a JTable into a mysql Database.I have created a project called ItStuff and created some classes for as the main class( Database operations ( and a JFrame ( for give you a better and clear idea about this operations.

Screen Shot 2558-11-16 at 12.57.05 AM

This is the JFrame i have created with just a table and a button. (more…)