convert String format into datetime format in crystal report - crystal-reports

i have a one field,i want to convert this date filed into date time format as following format in crystal report level.
Please suggest me formula for this

CdateTime({database_string_field})

Related

Date formatting in postgresql from existing data

I've date in dd-mm-yyyy format, I need the date in yyyy-mm(month) format. I'm using postgresql.
Thanks in advance.
date values don't have any format. Any formatting you see is applied by your SQL client. To turn a date into a string with a specific format, you can use to_char()
to_char(the_column, 'yyyy-mm')

Getting Start Date and End date of a Crystal Report

Good day guys,
I have several reports generated using Crystal report with a Date Range value and I need to get the formular for the Start date and End date of the report
Several reports has been generated using Crystal Report. I have used the Minimum() and maximum() formulars to get the Start date of the range and also the end date of it. But it is only picking the start date for the two reports.
minimum({Dttable.Order_date})
I expect the Output to be that if the date range selected is
01/07/2019-31/07/2019
Output should be start date 01/07/2019
end date 31/07/2019
I got a way Around.
I had to use it as formular and not under RunningTotal

Crystal Report Parameter Date format not support?

When I run/edit the report I have some error which Date format like this:
Follow up suggestion lead to the next issue:

Converting string to date in Crystal Reports

I'm new to Crystal Reports, I'm trying to extract and display month and year from the string (In DB the data type of the column is varchar). Following is an example of the data.
05-JAN-12 11.49.28.000000000 AM
I need it in following format
Jan-12
I have used cDate to convert the string to date format but was unsuccessful, maybe I didn't do it right way.
Alter the formula to extract the date portion, then convert it to a date:
DateValue(Split("05-JAN-12 11.49.28.000000000 AM")[1])
Apply formatting to the field as desired.
This may work
Date (Year ({reportfield}) * 10000 + Month ({reportfield}) * 100 + Day ({reportfield}))
Then format the field to display the date as your choosing.
MonthName(DatePart ("m", <<Date field>>))+"-"+totext(DatePart ("yyyy", <<DAtefield>>),0,"")

Jasper Report Date Format

In Jasper Reoprt, crosstab, I have displayed my date as like "2012-09-13". Is there a way to display it in reverse as "13-09-2012" using any String methods? And another thing is that I retrieve the date from SQL dB.
Thanks in advance!
You can do the above in the query level itself instead of doing it on ireport.
You may want to refer to the below link on how to format dates
format date
In ireport, you can use SimpleDateFormat/DateFormat and format your dates as you require
You can refer the link