i am working c# windows form application and also in crystal report.i am retriving the date from database in datetime format but i like display date only in report,Is any formula field in crystal report help for me for this problem.Thanks in Advance.
If the datetime is in field (not a formula) then you can format it:
If the datetime is in a formula:
ToText({MyDate}, "dd-MMM-yyyy")
//Displays 31-Jan-2010
or
ToText({MyDate}, "dd-MM-yyyy")
//Displays 31-01-2010
or
ToText({MyDate}, "dd-MM-yy")
//Displays 31-01-10
etc...