Solved

casting datetime

Posted on 1998-07-08
2
284 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

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

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

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

679 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