We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

SQL Query - parse string

holemania
holemania asked
on
Medium Priority
241 Views
Last Modified: 2012-06-27
I need help parsing a date so that it is in the format I need it to be for sql query.

Example:
2011-04-26 05:53:05.000   -->  20110426055305
2011-04-26 13:12:09.000   -->  20110426131209


Comment
Watch Question

Sean StuberDatabase Developer & Administrator
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2012
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Data Engineer
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
When I use the replace my date isn't number any more, but it's looking like the following:

Apr 26 2011 553AM

I need for it to look like 201104260553.

Author

Commented:
Okay got it working now.  Thanks
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.