Solved

UTC date

Posted on 2006-06-20
1
484 Views
Last Modified: 2012-06-27
Hello,

I am passing in a date formatted like this "2006-07-18T16:48:00" to a datetime field in a stored proc but receive an error about varchar conversion. The date was formatted in C# like this:

dt1.ToUniversalTime().ToString("s", _Culture)

What is the best way to handle this in Sybase?


0
Comment
Question by:tmueller18
1 Comment
 
LVL 10

Accepted Solution

by:
bret earned 500 total points
ID: 16948575
Not sure about "best" way, but a good way may be to use str_replace to replace "T" with a space before the conversion.

-bret
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now