Thanx all of ya.. for ur replies.....I got the sql solution for that..

Select to_char(to_date(1234,'J'),'JSP') From Dual