Solved

casting datetime

Posted on 1998-07-08
2
280 Views
Last Modified: 2010-03-19
How do i cast a datetime value to a string? i need to do this in an asp script.
0
Comment
Question by:csheppar
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1091687
If it does not go automatically, you can do it like this:

strDate = Month(dtVar) + "/"  Day(dtVar) + "/" + Year(dtVar)


0
 

Author Comment

by:csheppar
ID: 1091688
that didnt do the trick but i solved it. i just had to use convert. thanks anyways.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

808 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