tags:

views:

257

answers:

2

How would you convert a string like '2008-01-01 11:09:11' to a datetime ? The string is from outside of Sybase and I want to know how to insert it as a datetime

+1  A: 

Use the DATETIME function.

As an aside, Sybase SQL Anywhere has its own Stackoverflow clone which has Sybase engineers frequenting it.

Ben S
That site would have saved me TONS of work when I was first learning sybasde. +1 to you for the ink.
David Stratton
It just opened recently (a month or two ago). I'm actually an intern at Sybase right now, so I try to promote it as much as I can.
Ben S
A: 

SybaseTeam Discussion Forums This is just a promotion for sybaseteam.com the ultimate sybase forum on the web.

John