473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Quest: SQL <-- --> ASP.NET DateTime capatibities...

I am looking to read/write a ASP.NET DateTime(.Now for now) obj to/from a
MSDE DB and using VS.NET 2000(on Win2000 Pro). What formats are support by
both SQL & ASP.NET so conversion code is low?...

Any help...

Nov 15 '05 #1
2 1164
Well if you use parameters from the SqlCommand object and you set
DbType.DateTime you won't have any conversation problems because the class
will handle everything for you. So you will pass a DateTime.Now in and when
you pull it out it will be int he DateTime object format.

"lewi" <bj******@willapabay.org> wrote in message
news:vv************@corp.supernews.com...
I am looking to read/write a ASP.NET DateTime(.Now for now) obj to/from a
MSDE DB and using VS.NET 2000(on Win2000 Pro). What formats are support by
both SQL & ASP.NET so conversion code is low?...

Any help...

Nov 15 '05 #2
> Well if you use parameters from the SqlCommand object and you set
DbType.DateTime you won't have any conversation problems because the class
will handle everything for you. So you will pass a DateTime.Now in and when you pull it out it will be int he DateTime object format.

Strange it working on but eariler I was getting the runtime exception
error...

Thanks anyway...
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
4
by: ESPNSTI | last post by:
Hi, Please don't shoot me if the answer is simple, I'm new to .Net and C# :) .. I'm attempting to convert a nullable type to it's "non-nullable" type in a generic way (without knowing what...
0
by: lewi | last post by:
I am looking to read/write a ASP.NET DateTime(.Now for now) obj to/from a MSDE DB and using VS.NET 2000(on Win2000 Pro). What formats are support by both SQL & ASP.NET so conversion code is low?......
14
by: dananrg | last post by:
Been using the ODBC module for Python 2.1 (Win32) and had another question. When I return data from date columns, it's in a strange object form, e.g. <something or other> (don't have the output in...
10
by: Lennart | last post by:
I see a bunch of packages where valid <'Y'. What I cant figure out is how to relate the package to a procedure, function or whatever. Does anyone have a reference to share on the relationship...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
0
by: Marc Gravell | last post by:
Well, I'd have to wonder why you don't just use Dictionary<,/ SortedList<,/ SortedDictionary<,(and just use .Keys and .Values) But something like below: List<KeyValuePair<DateTime, double>list...
36
by: Nick | last post by:
Hi there I'm trying to use the IsDaylightSavingTime property of the datetime object. The PC I am using is in GMT, DateTime.Now.IsDaylightSavingTime() returns true...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.