Converting a date time to a date only
Post Author: Dockman
CA Forum: Formula
I am working on a report that has a running total field. The running total field keeps a running total and resets every time that a date changes. the problem is that my dates include times, therefore the running total resets on every line. How can I convert my date (in date time format) to be only a date so that it does not reset on every line?
Obviously, I am not a programmer so I apologize if this is a stupid question.
Post Author: yangster
CA Forum: Formula
if you are doing it inside crystal you can use the date functiondate({your.datetimefield})if you are doing it at the db level in a command this will vary depending on your db
Similar Messages
-
Select Records between Begin Date/Time and End Date/Time
Hi, I need to select records from table GLPCA where the CPUDT and CPUTM are between a START DATE/TIME and END DATE/TIME.
I have the below logic from an SAP Solution, but it doesn't seem to be working right in my opinion. It is picking up records earlier than the date ranges. Can anyone tell me how I might be able to accomplish this? I'm hoping this is an easy one for the ABAPPERs...
Thanks,
START DATE 20091022
START TIME 125736
END DATE 20091022
END TIME 135044
CPUDT 20091022
CPUTM 100257
SELECT * FROM GLPCA
WHERE ( CPUDT >= STARTDATE AND ( CPUTM >= STARTTIME OR ( CPUDT <= ENDDATE AND CPUTM <= ENDTIME ) ) ).Thank you all! I ended up using the following:
SELECT * FROM GLPCA
WHERE RYEAR IN L_R_RYEAR
AND ( ( CPUDT = STARTDATE AND CPUTM >= STARTTIME ) OR CPUDT > STARTDATE )
AND ( ( CPUDT = ENDDATE AND CPUTM <= ENDTIME ) OR CPUDT < ENDDATE ).
This child was born from the following thread that was found:
update date and time of client record -
UTC Date Time and Normal Date Time
Hi All,
1. How UTC date time and Normal date time differs in siebel.
2. If legacy data needed to be loaded into siebel, in siebel few fields are date time and UTC date time fields. what would happen if we load both normal date time and UTC date time without considering them techinically?
3. UTC date time holds any specific format in physical database? If we want to load legacy data to UTC date time format what is the query to manipulate it?
Thankyou
SeanSean,
Please check document below, I believe it has most of the answers to the questions you have:
http://download.oracle.com/docs/cd/E14004_01/books/GlobDep/GlobDepUTC.html
Hope it helps,
Wilson -
Convert labview date/time to excel date/time
How do I convert the "seconds since 1904" from the function "Get Date/Time in Seconds" to an MS Excel date/time format? The application runs in the Solaris environment.
hi, I am not sure about Solaris env.
Maybe this will help in one way or another.
Regards
ian.f
Sg/My
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
GetDatenTime_to_File.vi 48 KB -
Function module for converting German Data/Time to Indian Date/Time
Dear All,
My requirement is to convert German date and time to Indian date and time. Is there any function module available or any way we can get it?
Thanks and regards,
Atanuhi,
first get the timezone of that country
CALL FUNCTION 'TZON_LOCATION_TIMEZONE'
EXPORTING
if_country = p_it_userid-zcountry
IMPORTING
ef_timezone = l_tzone
EXCEPTIONS
no_timezone_found = 1
OTHERS = 2.
then use the below statements
-- Convert from server time to GMT
CLEAR l_tstmp.
CONVERT DATE l_datum
TIME l_ctime
INTO TIME STAMP l_tstmp TIME ZONE sy-zonlo.
*-- Convert from GMT to user backup time
CONVERT TIME STAMP l_tstmp TIME ZONE it_usr_timezone-ztzone
INTO DATE it_usr_timezone-zdate
TIME it_usr_timezone-ztime. -
ABAP statement for converting UTC date/ time to local date/time
Hi
Is there any abap statement or any function module in BW which converts UTC date and UTC
time into local date and local time according to specific country.
Regards,
KateHi,
and to convert the country to a timezone first use: TZ_LOCATION_TIMEZONE
/manfred -
Sorting photos by date/time taken, when date/time created is not an option?
I'm so sorry if this has been answered elsewhere, but I can't find it on Google or in the forums...
I need to sort wedding photos from multiple photographers by date taken so I can sort through the wedding as a full event. Sorting by the date/time the file was created will not suffice because I had to convert all photos from one of my photogs from NEF to DNG (D610 files not compatible with CS5), so the 'date created' for those DNG file is days later than all the other images. Thus, sorting by "date created' batches all the photos from one of my photogs together at the end.
Is there any option in Bridge that will actually read the metadata and sort by the shoot time of the image?
Thanks for any help!There has been a known bug in PSE9 although only affecting raw images and caused by the Camera Raw 6.4 update. The timestamp gets changed by one hour each time an image is modified. I don’t know if your issue is related but the work around is to revert to ACR 6.3
http://kb2.adobe.com/cps/915/cpsid_91582.html
The only other work around is to temporarily switch to folder location view, if your images were imported from a single folder. Click on the display button (near top right in Organizer) to change the browser view. If you click on the folder in the left hand pane the files will normally be in sequential file name order which usually mirrors the date/time taken. From the folder location it’s possible to create an instant album, which can then be used as the basis of a slideshow. -
How to insert a data&time to Database date field
Dear Friends,
I have created a Stored Procedure which takes a Date data type as an input,When i call this procedure from java i need to set the data&time in
yyyymmddhhmmss format. How to set this from java ?.
Rgds
Mohan SHow to set this from java ?.Usually you use a prepared statement and one of the set methods.
Or you can use setString() and format the date yourself using SimpleDateFormat. -
Selection based on previous run date , time and current date a
HI all,
I have the selection as follows.
Previous run date : .12/14/2005.. previous run time-14:30:56
current run date : 12/17/2009. current run time: 07:05:31
Here all are parameters. and current run date is system date and current run time is system time.
i want to fetch all the deliveries from the above selection including previous run date and time.
Any inputs..Hi
Append current run data and previous run data into a data range parameter,Current time and previous time into time range parameter and fetch the data based on the range parameters.
Regards
Srilaxmi -
Function Module to convert Current Date & Time to Julain Date.
Hi Guys,
Is there any Function Module for converting Current system Date to Julian Date.
I only want a Function Module not any report program.
Thanks......
Sudheer.hiii
i tried to find a FM for that but could not find any..ya after reading this thread i read about how julian date can be make..from this link only i read about Julian date
and for this time is also needed but i think there is not any FM for this.still i am searching.let me know if you get any. -
Convert Date Time field to Date & Time
Post Author: Smita
CA Forum: Crystal Reports
I am new to Crystal XI . I need to convert DateTime ("2007/04/04/04 09:49:05:00") format to Date and Time and then group a months data first by date and then by Time ( per Hour ).
If someone can help ?
ThanksPost Author: newcruser
CA Forum: Crystal Reports
Thanks
This is easy...second group based on the second formula 'for each hour'.
How you group by 15 minutes?.
i want to group by every 15 minutes starting from 9 AM to 5 PM.
First i need to create a time range and then use that time range to group?. Or any other simple and best way to solve this?. Please help
How to create time range from 9 AM to 5 PM? -
Convert date time to file date time
Hi,
I have standard delphi function which conver datetime to filedatetime here is the description
function DateTimeToFileDate(DateTime: TDateTime): Integer;
Description
Use DateTimeToFileDate to convert a TDateTime value, which is the representation of date-and-time values used by the VCL, to a DOS date-and-time value.
For example, use DateTimeToFileDate to convert a TDateTime value to a
format that can be used as the Age parameter of FileSetDate. You may
also need to use DateTimeToFileDate to convert a TDateTime so that it
is compatible with the Time field of the TSearchRec record used by the FindFirst
and FindNext functions.
Lo returns the low-order Byte of the argument X as an unsigned value. X is an expression of type Integer.
Use Hi to obtain the high-order byte of an expression of type Word or Integer.
Note: Hi treats Integer as a 16-bit value, even if it is 32-bit.
This is the delphi code that convert the date
year=2003
month=5
day=28
sec=57
min=45
hr=13
msec=107
LongRec(Result).Lo := (Sec shr 1) or (Min shl 5) or (Hour shl 11);
LongRec(Result).Hi := Day or (Month shl 5) or ((Year - 1980) shl 9);
output Result is --> 784100796
Any help will be highly appreciated.
Thanks.You use the java.util.GregorianCalendar to extract month, day, etc from a date.
Then you use the shift operator ('<<') to construct the number. -
Converting a system time to a Date?
Hi all,
I know you all get very upset with simple questions. So let me apologize in advance. I did do a few searches and looked at the tutorials but I can't seem to figure this one out. I have an object stored in a vector which I collected using file.LastModified(). A typical value might be "1049208991081". I want to convert this into a date in the format 12/12/2002. Can someone explain to me how to do that without referring me to another API or tutorial. I think I've looked at quite a few and can't seem to get it....Give this a try. You may want to check in the API on exact format characters for the SimpleDateFormat.
java.text.DateFormat formatter = new java.text.SimpleDateFormat( "MM/dd/yyyy");
java.util.Date lastModified=new java.util.Date(new java.io.File(yourFile).lastModified());
String formattedDate = formatter.format(lastModified); -
Converting Date-Time to Long Date in a string that is stored in a formula
The following are 2 verions of formulas that I've tried in placing the long date on a report. I want the JUD_T_MEETING_NOTICE.MEETING_DATE to be displayed on the letter if Outcome_ID = 3.00 as April 29, 2009. The field's fomat in the table is 04/29/2009 and neither of the formula's below worked. I tried formatting the date as a separte formula, as shown in Formula #2 below, but the formatting defaults to the original DataType. Anyone have any ideas on how to format the date within the string in the formula?
FORMULA #1:
IF {JUD_T_MEETING_NOTICE.FK_OUTCOME_ID} = 3.00
THEN 'I received the enclosed report(s) for review. To resolve this matter, you must contact the office at ' & {@HallPhone} & ' to schedule a meeting to discuss the incident with me. This meeting must occur by ' & DATETIMETODATE({JUD_T_MEETING_NOTICE.MEETING_DATE}) & '. If you have a conflict with this deadline, please let me know as soon as possible to make alternative meeting arrangements.'
ELSE IF {JUD_T_MEETING_NOTICE.FK_OUTCOME_ID} = 9.00
THEN 'You missed your scheduled meeting.'
FORMULA #2:
IF {JUD_T_MEETING_NOTICE.FK_OUTCOME_ID} = 3.00
THEN 'I received the enclosed report(s) for review. To resolve this matter, you must contact the office at ' & {@HallPhone} & ' to schedule a meeting to discuss the incident with me. This meeting must occur by ' & ({@FormatMeetingDate}) & '. If you have a conflict with this deadline, please let me know as soon as possible to make alternative meeting arrangements.'
ELSE IF {JUD_T_MEETING_NOTICE.FK_OUTCOME_ID} = 9.00
THEN 'You missed your scheduled meeting.'Assuming JUD_T_MEETING_NOTICE.MEETING_DATE is a date field, modify your formula to:
totext(({JUD_T_MEETING_NOTICE.MEETING_DATE}),"MMMM dd, yyyy")
If it is not a date field but a string, then
totext(cdate(JUD_T_MEETING_NOTICE.MEETING_DATE ),"MMMM dd, yyyy") -
Does Adjust Date & Time Modify EXIF data?
If I use the adjust date and time does it modify the exif data in the original photo, so if I export the photos elsewhere it will preserve these edits? I was using Picasa and fixed the date and time on a few photos only to find them back to 1/1/2002 when I imported my photos to iPhoto
I just saw this checkbox today and hoped it meant that. I've really wanted this feature for a long time now.
Maybe you are looking for
-
The only URL that I ever see in the location bar is the last one I typed there. No matter which tab I activate, the last typed URL is displayed. When I need to copy the URL of an active tab to paste into an email or something I can't see it. The loca
-
hi experts, I dont want to allow to create a purchase order in future date. hw to put control in po pls suggest me. regards, Ali
-
Laser Jet 1020 used to print just fine from internet explorer. Suddenly it quit printing and I get an error message res://ieframe.dll/preview.js The bottom of the error message asks if I want to cancel script. Prints fine from other windows applicat
-
TDS certificate not showing Basic, surcharge and education cess separately
Hi i created three codes as basic, surcharge and for education cess. I have also mantained the J_1IEWT_SURC table and J_1IEWTSURC. But i am getting error in mantaining table J_1IEWTECESS as View/table J_1IEWTECESS can only be displayed and maintained
-
Database Problems on RH6.2/Oracle 8.1.5
I've created a database, but get the following error when trying to connect with sqlplus: ERROR: ORA-00600: internal error code, arguments: [12803], [], [], [], [], [], [], [] Any ideas?