Print Page | Close Window

String to Date Format

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=17677
Printed Date: 03 May 2025 at 4:36pm


Topic: String to Date Format
Posted By: crystaljunkie
Subject: String to Date Format
Date Posted: 02 Oct 2012 at 8:53pm
I want to convert the string format "2011-01-06T00:00:00" to date format like 2011-01-06.
I tried with Cdate function but its giving an error saying BAD DATE FORMAT.
 
Can anyone please let me know how to convert this.
 
Note: Am using the VS2008 Crystal version.
 
Thanks in adv.
 
-MS



Print Page | Close Window