Thank You westconn for your great help.
When I run the macro, its working fine but not able to convert the date from dd-mon-yyyy to yyyy/mm/dd format. (year should comes first, followed by month and day)
i.e. For 22-JAN-2013 Output should be 2013/01/22
For May-2012 Output should be 2012/05/--
For date like 2011 Output should be 2011/--/--
I changed the macro like below.
Sub xx()
Dim c As Range, sNF
With Sheet1
For Each c In Range("J2:J" & Cells(Rows.Count, 10).End(xlUp).Row)
If c.Value <> "" Then
If Not IsDate(c.Text) Then
c.Value = Format("1/1/" & c.Text, "yyyy/--/--")
Else
Select Case Len(c.Text) - Len(Replace(c.Text, "-", ""))
Case 2
c.NumberFormat = "yyyy/mm/dd"
c.Value = c.Text
Case 1
c.Value = Format("1/" & Replace(c.Text, "-", "/"), "yyyy/mm/--")
End Select
End If
End If
Next c
End With
End Sub