Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > cast from datetime type to smalldatetime type?

Reply
Thread Tools

cast from datetime type to smalldatetime type?

 
 
Salim Af■ar
Guest
Posts: n/a
 
      08-01-2003
Hi,
How can I cast from datetime type to smalldatetime type.
I get the records from a table which has got a datetime type column but I
want to display it smalldatetime format.
Thanks,
Salim


 
Reply With Quote
 
 
 
 
Stu
Guest
Posts: n/a
 
      08-01-2003
I think you can use something like:

response.write(dMyLongDate.tostring("dd/MM/yy"))

Regards,

Stu


"Salim Af■ar" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi,
> How can I cast from datetime type to smalldatetime type.
> I get the records from a table which has got a datetime type column but I
> want to display it smalldatetime format.
> Thanks,
> Salim
>
>



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.505 / Virus Database: 302 - Release Date: 30/07/2003


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[2.4.4] creating a datetime.datetime from an XML xs:dateTime Martin Python 0 12-27-2008 08:08 PM
mx.DateTime to datetime.datetime mp Python 1 07-28-2006 10:57 PM
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. luna ASP .Net 1 02-13-2004 01:15 PM
datetime: .datetime-.datetime = .timedelta, .time-.time=TypeError ? Christos TZOTZIOY Georgiou Python 3 09-13-2003 10:44 AM
RE: datetime: .datetime-.datetime = .timedelta, .time-.time=TypeError ? Tim Peters Python 0 09-09-2003 12:57 AM



Advertisments