I want to date 20063012 format to 2006-30-12 format in variable
plz tel me
i have v_date = '20063012'.
i want to move data v_date to v_new_dat for this format
2006-30-12.
Hi,
Check the "Write to w_date using edit mask" statement, it should work !
WRITE SY-DATUM TO w_date USING EDIT MASK '____-__-__'.
Regards,
Erwan
Similar Messages
-
I want to transfer some of the data from an intel 2006 iMac running 10.4.11 to a 2011 iMac running 10.6.8. What is the best way?
It depends on what you have. The options include:
1. Connect them with a FireWire cable and start up with old iMac with the T key held down.
2. Copy the files over a network.
3. Copy the files to an external drive. Some files require the volume to be formatted as Mac OS Extended.
(117837) -
How to get date in format(1st jan 2006 ).
can we get get the date in the 1st jan 2006 format .
we can get the date in format 1 jan 2006 by using (d MMM yyyy) but i am not able to get st, nd, or rd after the day in(d mmm yyyy)format like 1st 2nd 3rd 4thSearch and thou shall find. I read a similar thread just yesterday, school task?
you can say that you have a String postfix, which is set like this:
String postfix = "";
switch(dayOfMonth) {
case 1:case 21:case31: postfix = "st"; break;
case 2:case 22: postfix = "nd"; break;
case 3:case 23: postfix = "rd"; break;
default: postfix = "th";
} -
I have a numbers spreadsheet for tracking company data. I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year. How do I do that?
click and hold on one cell, then drag to select the range, then release, then type the delete key. Only inlude cells in the range you do not want to keey the contents of the cell. You can remove one-off cells by holding the command key and clicking cells to add or remove as needed.
You can download the Numbers users guide here:
http://support.apple.com/manuals/#productivitysoftware -
Hi All,
I'm back already! Learning Flash is beginning to get to me
again so I returned for yet more help!
I've written the following AS code to get tomorrow's date . .
// Calculates today's date and tomorrow's date
var dToday:Date = new Date();
dToday.getDate()
trace("today: " + dToday) //today's date
myD = dToday.getDate() + 100; // plus one day
var dTomorrow:Date = new Date();
dTomorrow.setDate(myD)
trace("new: " + dTomorrow) //tomorrow's date
var strDate:String = new String();
var strDate = String(dTomorrow);
trace("String: " + strDate);
The strDate string returns the following value . . . "Tue Jul
11 16:19:57 GMT+0100 2006".
That is all well and good but I want to convert it into the
following format for comparison with another field . . .
"200607111619" which is basically the same value in the following
format . . . "yyyymmddhhmm".
Does the only way of doing this involve using parsing logic
to break down the original string and then reconstruct it in the
required format using variables from the broken down original
string?
I have tried looking at the Date Field object notes in my
book but it does not give me anything as regards this programming
requirement. The only thing I can find that might suit this purpose
is string parsing logic. Am I right or is there an easier way to
set a date field format?
Any help would as always be much appreciated!
Thanks,
Kevin.I'm working on an application which requires a valid Voucher
Number to proceed. The Voucher number is based on a combination of
'date/time/no of items' (e.g. 20060711095802 which is today at
09:58 (on a 24 hr clock) for 2 (02) items).
As this date this date/time Voucher Number logic is
essentially sequential, in that each subsequent Voucher Number will
be greater than the last good known Voucher Number entered into the
application (which is already stored in a variable field for
comparison). But it must also be less than tomorrow's date, for
which the Voucher Number would always be tomorrow's date (e.g.
20060712 at 00:00 hrs for 00 items, thus giving 20060712000000).
This is the value that I'm trying to ascertain from the date field
logic.
It would thus be really handy for comparison if I could just
format tomorrow's date and time in the format yyyymmddhhmm and just
add '00' to the end of the string.
I don't like the idea of using the milliseconds value as it
will be necessary then to convert the Voucher Number entered to a
date field for comparison. -
Specifying date time format in Finder
How can I specify the date-time format in Finder for the "date-modified" and "date-created" columns in list view?
About three years ago, I got a command line instruction to set these formats and I kept it at mm/dd/yy
Then a couple days ago, I changed the date format in iStat menus and the date-time formats started acting weird. I want the dates to be like "07/08/05" (mm/dd/yy) and then the formats started changing to "November 07, 2008" (month/dd/yyyy). This change seemed to take effect any time I open the view options for a folder. Now I discovered that the date format change depending on the column width according to the format specified in system preferences, international, formats.
Narrow column, short date format; a little wider to long format, with ellipses if the column is not wide enough; then full format.
Does anyone know the command line to set the format to keep it to the one I want?this doesn't seem to be it. however I now like the way Finder does display dates -- format gets more compact as the width of the column decreases; although there still is some excess space left on the left -- perhaps for AM & PM which I don't use; I use a 24 hour time format instead.
Happy New Year -
Trasnform current date to format MM/dd/yyyy HH:mm:ss AM/PM
Hi All,
How do I transform current date to format MM/dd/yyyy HH:mm:ss AM/PM?
I am able to get the format MM/dd/yyyy HH:mm:ss by using the standard date function. How do I get AM or PM to end of MM/dd/yyyy HH:mm:ss??
Thanx
NavinHi Navin,
How AM/PM is added? In the sample values given its in 24 hrs notation. Are u sure you want to add AM/PM to this notation? or U want to change this 24 hrs notation into 12 hrs and add AM/PM?
For converting into 12 hrs and appending AM/PM you can use this code:
input a:
int hr = Integer.parseInt(a.substring(11,13));
String appendVal = "AM";
if(hr > 12){
hr = hr - 12;
appendVal = "PM";
} else if(hr == 12){
appendVal = "PM";
} else if(hr == 00){
hr = hr + 12;
Sting finalVal = a.substring(0,11) + String.ValueOf(hr) + a.substring(13,a.length()) + appendVal;
return finalVal;
Regards,
P.Venkat
Message was edited by:
Venkataramanan -
How to convert date value(format) in Calendar(input controls)
Hi everyone
I am using webi 4.0
My problem is when i select calendar date(input Controls) i am able to display time stamp along with date in input Controls(MM/dd/yyyy 12:00:00 AM)
i want to change (MM/dd/yyyy 12:00:00 AM) to (yyyy-MM-dd ), when i select calendar date(input Controls)
where is the calendar date(input Controls)' format setting??
i dont want to show the time stamp in calendar date(input Controls) as my users dislike to see that timestamp .
Thanks & regards
'Before'
'After' ( i want to change 'Before' to 'After')Hi Park,
Create a new variable on the Calendar Date object and edit it using FormatDate function and use that object for input control.
=FormatDate([Date];"yyyy-MM-dd")
Regards,
Javed -
Default date should be displayed in Locale's date short format in Prompt
Dear BI Gurus,
I would like to take your attention to resolve one of date format issue which we are currently facing.
We want to display Current_Date in locale's date short format ( For US: MM/DD/YYYY and for UK: DD/MM/YYYY) in a dashboard prompt. Also we need to pass the the prompt value to the report filter through presentation variable.
For this we used logical sql to get the default value as select Times.time_id from sh when times.time_id= Current_Date. Once I click on the preview button it was showing in locale's date short format. But when we place the prmpt in dashboard, the default date was coming up in 'YYYY-MM-DD' format. But since calendar picker is giving value in locale's date short format (For US: MM/DD/YYYY and for UK: DD/MM/YYYY), there is an inconsistency in the display format. So could you please provide any workaround to make them consistent.
Thnaks,
Siva Naga Hari.
Edited by: user6371352 on 27-Mar-2010 13:50Hi Vinay,
Thanks for reply.
We are looking for default date display format in dashboard prompt. i.e For US locale, default date and calendar picker should be displayed in MM/DD/YYYY and for UK locale, default and Calendar picker should be displayed in DD/MM/YYYY.
We don't have any problem in report output for different locales. Also we don't need to create 2 seperate reports for different locales. If we set the data format to [FMT:dateShort], it will display as per the locale's date short format. Please provide workaround to display in dashboard prompt.
Thanks,
Siva Naga Hari. -
Hi,
I have a Date Picker in my view and its default date format is mm/dd/yyyy. I want to change its format to dd/mm/yyyy. Any way to change its format?
Rewards waiting for the right ans.
vinod.Hi,
Make use of the following code
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your Date attribute");
attributeInfo.getDataAttribute().getScalarType().format("dd/MM/yyyy");
Regards
Ayyapparaj -
Converting input date alternative format
Hi,
I'm developing a screen form (not SQL Plus) in which I want the user to enter a date in any format and then convert it to another - for example,
User inputs - 02/03/2000
Form converts field from 02/03/2000 to 02-MAR-2000.
How do I do this ?
JohnDo you want to allow many different formats or you want to allow the date entry in only one format always?
For example, if you decide that the date entry will be in the format of MM/DD/YYYY, then you can use
TO_DATE('02/02/2002', 'MM/DD/YYYY') to create a date type datatype from the input.
If you wanted to support multiple formats, then you would have to do some if-else logic to figure out the format in which
the user entered the date and use appropriate format within the TO_DATE function. -
I want a 'date', on front page, to be reflected on all my headers automatically.
I have a document which has a date which is changed manually with every revision. Now I want that date to be reflected on headers automatically without manually editing header every time.
You have a number of options. If you use a:
• DATE field, that will display the current date.
• CREATEDATE field, that will display the date on which the file was created, or last saved via Save As.
• SAVEDATE field, that will display the date on which the file was last saved.
• PRINTDATE field, that will display the date on which the file was last printed.
These fields can all be inserted via Insert|Quick Parts|Field. Of the above, I'd be inclined to use the CREATEDATE field, saving the document via Save As whenever a revision is ready for release, then releasing it. For publication purposes, though, I'd recommend
the PDF format, as that ensures the users won't inadvertently change the date via their own Save As.
Note: If you prefer to type the date on the front page, you can apply a unique Style to it, then reference that Style via a STYLEREF field in the header. This field, too, can be inserted via Insert|Quick Parts|Field.
Cheers
Paul Edstein
[MS MVP - Word] -
How can I make a date show up as 08/30/2012 on a cell instead of automatically changing to Aug 30, 2012. I need the date to show up as 08/30/2012
The iWork apps defaut to the longer date format. There are a lot of choices of date formats in the iWork apps. Using the cells inspector, set the format for the cells/columns/rows as date & time & then pick the format you want. If you format the cells before you enter the dates they won't change. If you're pasting data into previously formatted cells, use paste & match style to have the data take on the existing characteristics.
-
Determine Date field format dynamically
Hello friends,
I'm writing some database access code in java. The biggest problem I face is date fields. Because I don't know the date field format (For example, in SQL Sever we can have dd/mm/yy or mm/dd/yy, etc), I can't format dates for insert/update statements.
Is there a way to determine the date field format dynamically? Regardless of database, for ex. MS SQL, Oracle?
Thank you.Hey!
There is a way to do this! The Oracle Database understands SQL92 Syntax. So you can use
- {d ?yyyy-mm-dd?} for date representation,
- {t ?hh:mm:ss?} for time representation,
- {ts ?yyyy-mm-dd hh:mm:ss.f...?} for timestamp rep.
Here is a small example:
// Connect to the database
// You can put a database name after the @ sign in the connection URL.
Connection conn = DriverManager.getConnection
("jdbc:oracle:oci8:@", "scott", "tiger");
// Create a Statement
Statement stmt = conn.createStatement ();
// Select the ename column from the emp table where the hiredate is Jan-23-1982
ResultSet rset = stmt.executeQuery
("SELECT ename FROM emp WHERE hiredate = {d ?1982-01-23?}");
// Iterate through the result and print the employee names
while (rset.next ())
System.out.println (rset.getString (1));I hope this is what you wanted to know! -
Data label formatting for SVG charts seems to have a bug in 1.6.
Could you take a look at
http://htmldb.oracle.com/pls/otn/f?p=20794:1
The first chart does not have a format mask and the chart works correctly. The 2nd chart is an exact copy of the first chart, but has a Data Label Format mask. I have tried several different format masks and they all cause the chart to only display one bar.
By the way, this worked correctly in 1.4. I discovered it on moving an application to 1.6.
ThanksDoyle,
you can work around the problem by getting rid of the data format in the page definition and applying your own formatting using the TO_CHAR function.
You could even make it dynamic by storing the data format in a page item, picking it from a static LOV for instance.
That would allow a user to choose the preferred one.
If you don't want to give the user this flexibility, then you can store the mask in a hidden item, so that you can make the feature available at a later stage of development.
Bye,
Flavio
Maybe you are looking for
-
I have duplicates of a song on an album. One of the duplicates is grey with no album cover. When you attempt to swite and delete, the track will not delete and will not even play. I've contacted iTunes store and the person I received the support emai
-
Game center just says loading and cant play any games
I am using a Iphone 3gs at&t but i have switched to Straight talk the phone is not Jailbroke or anything just have downloaded unlockit.co.nz for my APN settings.Everything has always worked but now for some reason when i go into Game Center it just s
-
Is it possible to add a graphics card to the back of my HP
Hello I want to know if it's possible to add a new graphics card to the back of a Laptop not inside of it but on the back of my laptop ??? my graphics Card is a Intel 4000 graphics card is a terrible for gaming TERRIBLE !!!
-
A recent convert from PC: External Hard drive, iTunes library, and NTFS
So I recently picked up an iBook and am using it in addition to my Toshiba laptop. My entire collection of mp3's is about 13,000 songs, occupies over 40 gig and is stored on an external hard drive. All tags are complete and accurate (That was a long,
-
I just got a new nano and it said I needed the newest version to synch up so I downloaded the latest itunes. Everything went fine until I clicked on the icon and nothing happened. Then I clicked on it again, still nothing. I uninstalled everything, a