Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi please anybody know than tell me i want to execute below query in oracle with date and specific with time but give error not valid month please any body know then give solution

Query:-select * from m_servicemaster where to_date(srm_enter_date) >'9/19/2011 3:42:28 PM'

ERROR at line 1:
ORA-01843: not a valid month
Posted
Updated 19-Sep-11 0:26am
v2

1 solution

Use this
SQL
select * from m_servicemaster where srm_enter_date > to_Date('09/19/2011 03:42:28 PM',"MM/DD/YYYY HH:MI:SS AM");
 
Share this answer
 
Comments
Bhaumik Lathia 20-Sep-11 1:16am    
thanks buddy
Prerak Patel 20-Sep-11 1:27am    
You are welcome. If your query is solved, mark the answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900