Hi i want the date format as 09-jan-1985 without change in print program
could u help me in this
Hi,
Check this example of how to get this format..
TABLES: T247.
DATA: V_DATE TYPE SYDATUM.
DATA: V_STRING(20).
V_DATE = SY-DATUM.
SELECT SINGLE * FROM T247
WHERE SPRAS = SY-LANGU
AND MNR = V_DATE+4(2).
IF SY-SUBRC = 0.
CONCATENATE V_DATE+6(2) '-' T247-KTX '-' V_DATE(4)
INTO V_STRING.
WRITE: / V_STRING.
ENDIF.
Thanks,
Naren
Similar Messages
-
How does one change the date format for PlayMemories Home folders?
I am using PlayMemories Home Version 2.0.00.11271 and have many folders within it which contain only photographs imported from my Sony DSC-H9. Unfortunately, PlayMemories Home insists upon dating all folders in a month/day/year manner; and this makes little sense if one wishes to have the folders listed in logical chronological order. How can I change the date format to year/month/day? Changing the name of each folder, one by one, will take a very long time! Your helpful advice in this matter will be greatly appreciated. Thank you. System information:
Operating system: Microsoft Windows XP Professional
Service pack : Service Pack 3
Memory: 1.5 GB
Processor: Intel(R) Pentium(R) M processor 1.86GHz
Max. clock speed: 1.86
Manufacturer: IBM
Model: 1847W76
System language setting: English (United States)
User language setting: English (United States)I too thought that the folder naming format was obviously wrong and couldn't find a way to change it. I do agree that placing photos in folders according to when they were taken is a great idea. I had been considering writing some software to do just that. After discovering that PlayMemories does it, I had it re-import all my photos. Then I wrote a small Perl script to rename all of the folders into year-month-day format. Included here is the Perl script. It only acts on a single folder - use it on the root folder where all the PlayMemories folders are. It will rename all folders currently in a month-day-year format. I used it without problems but of course there is no guarentee that it is error free. This should work with any common version of Perl. Tom # There should be one command line argument: the directory to act upon
if ( scalar(@ARGV) == 0 ){
print "Usage: RenameDirs <dir>\n";
print " Where dir is the directory containing the directories to rename.\n";
exit;
$mydir = $ARGV[0];
chdir $mydir or die "Couldn't chdir to $mydir: $!";
opendir(ROOTPHOTODIR, ".") or die "Failed to open the pictures directory $mydir: $!";
@allphotodirs = readdir ROOTPHOTODIR;
closedir ROOTPHOTODIR;
foreach $dir (@allphotodirs) {
if ( -d $dir ) {
print "$dir is a directory";
if ( $dir =~ /^(\d{1,2})-(\d{1,2})-(\d{4})$/ ) {
print " and has the proper format: month $1 day $2 year $3 and will be renamed to ";
$newname = sprintf "%4u-%02u-%02u", $3, $1, $2;
print "$newname\n";
rename $dir, $newname or die "failed to rename $dir to $newname: $!";
else {
print " but is not of the proper format\n"
elsif ( -f $dir ) {
print "$dir is a file\n";
else {
print "$dir is neither a directory nor a file\n";
} -
I want to change the date format MM/YYYY to MM.YYYY in web report
Hi to all experts,
Here the problem is: when i run a report for variable input when we select date as MM/YYYY its getting error . Here i need to change MM/YYYY to MM.YYYY. can u please tell me where exactly i need to change means in BEx or Web? if it is BEx where it is exactly pls tell m ethe step to step procedure.
Its urgent!
( I will assign the points if its useful to me)
Advance Thanks,
ShahHi Siggi,
In su01 if we go and change the date format from MM/YYYY to MM.YYYY for a particular user ex:ss11 , if another user ex:bst55 try to run the web report he/she may get same error .If we make the change in su01-> default tab->under date format for a particular user , is it work for other users?
Can u tell me step by step where exactly we need to go in AWB and where need to modify.
I am looking for ur answer.
Thanks in Advance
Shah -
How can i convert a the date format 'm/d/yyyy hh:mi:ss AM' to 'MM/DD/YYYY HH:MI:SS AM' in Oracle
I have a query
select UPPER(t.val_10) "TYPE", count(val_3) "Number of Transfers"
from table1 t
where t.is_active = 1
and t.val_4 = 'INBOUND'
and to_date(to_date(val_5,'MM/DD/YYYY HH:MI:SS AM'), 'DD/MM/YY') between to_date(to_date('01/08/2008 00:00:00','DD/MM/YYYY HH24:MI:SS'), 'DD/MM/YY') and add_months(to_date(to_date('01/08/2008 00:00:00','DD/MM/YYYY HH24:MI:SS'), 'DD/MM/YY'),1)
group by UPPER(t.val_10)
order by UPPER(t.val_10)
I get the error [ORA-01861: literal does not match format string which i think is because
val_5 has the values in the following format:
8/29/2008 6:31:10 PM
Does anyone have an answer?
Thanks in advance
Edited by: user2360027 on 26-Mar-2009 03:50first off, you've got to_date(to_date(...)) - NEVER do this - you're forcing an implicit to_char which can cause all sorts of problems!
What is the data type of your column val_5? If it's DATE then your query is simply:
select UPPER(t.val_10) "TYPE",
count(val_3) "Number of Transfers"
from table1 t
where t.is_active = 1
and t.val_4 = 'INBOUND'
and val_5 between to_date('01/08/2008','DD/MM/YYYY') and add_months(to_date('01/08/2008','DD/MM/YYYY') ,1)
group by UPPER(t.val_10)
order by UPPER(t.val_10)If it's a varchar2 (why, oh why, oh why, ...?!), then your query should be:
select UPPER(t.val_10) "TYPE",
count(val_3) "Number of Transfers"
from table1 t
where t.is_active = 1
and t.val_4 = 'INBOUND'
and to_date(val_5, 'mm/dd/yyyy hh:mi:ss AM') between to_date('01/08/2008','DD/MM/YYYY') and add_months(to_date('01/08/2008','DD/MM/YYYY') ,1)
group by UPPER(t.val_10)
order by UPPER(t.val_10)Remember that dates in DATE format are stored in an internal Oracle format - in order for you to tell Oracle that your string is a date, you need to use to_date. When you want to retrieve a date, you need to use to_char to put it into the format you want to see it in.
Remember also that your nls_date_format defines the default format that you'll see a date, which is what is used in the implicit conversion that oracle does when you select a date:
SQL> alter session set nls_date_format='dd/mm/yyyy hh24:mi:ss';
Session altered.
SQL> select sysdate from dual;
SYSDATE
26/03/2009 11:01:53
1 row selected.
SQL> alter session set nls_date_format='mm/dd/yy hh12:mi:ss AM';
Session altered.
SQL> select sysdate from dual;
SYSDATE
03/26/09 11:02:24 AM
1 row selected.It doesn't make sense to convert something that's already in a DATE format into a DATE format - in order to do that, oracle has to first change the date into a string, and it does that by using the nls_date_format parameter setting - if you're working with dates-in-strings that are in a different format, then all sorts of problems arise, as you have found out! -
How can I change the date format in Reminders and in Notes?
How can I change the date format in both Notes and Reminders? Preference on Imac and Settings in IOS do not allow me to change the format in those 2 apps.
I Like to see 10oct rather than 10/10, as an example.pierre
I do not have Mavericks or iOS - but the first thing I would do is reset the defaults - I'll use Mavericks as an example
From If the wrong date or time is displayed in some apps on your Mac - Apple Support
OS X Yosemite and Mavericks
Open System Preferences.
From the View menu, choose Language & Region.
Click the Advanced button.
Click the Dates tab.
Click the Restore Defaults button.
Click the Times tab.
Click the Restore Defaults button.
Click OK.
Quit the app where you were seeing incorrect dates or times displayed.
Open the app again, and verify that the dates and times are now displayed correctly.
Then customize to taste - OS X Mavericks: Customize formats to display dates, times, and more
OS X Mavericks: Customize formats to display dates, times, and more
Change the language and formats used to display dates, times, numbers, and currencies in Finder windows, Mail, and other apps. For example, if the region for your Mac is set to United States, but the format language is set to French, then dates in Finder windows and email messages appear in French.
Choose Apple menu > System Preferences, then click Language & Region.
Choose a geographic region from the Region pop-up menu, to use the region’s date, time, number, and currency formats.
To customize the formats or change the language used to display them, click Advanced, then set options.
In the General pane, you can choose the language to use for showing dates, times, and numbers, and set formats for numbers, currency, and measurements.
In the Dates and Times panes, you can type in the Short, Medium, Long, and Full fields, and rearrange or delete elements. You can also drag new elements, such as Quarter or Milliseconds, into the fields.
When you’re done customizing formats, click OK.
The region name in Language & Region preferences now includes “Custom” to indicate you customized formats.
To undo all of your changes for a region, choose the region again from the Region pop-up menu. To undo your changes only to advanced options, click Advanced, click the pane where you want to undo your changes, then click Restore Defaults.
To change how time is shown in the menu bar, select the “Time format” checkbox in Language & Region preferences, or select the option in Date & Time preferences.
Here's the result AppleScript i use to grab the " 'Short Date' ' + ' 'Short Time' " to paste into download filenames - works good until I try to post it here - the colon " : " is a no-no but is fine in the Finder
Looks like iOS Settings are a bit less robust
- Date/Time formats are displayed according to 'tradition' of your region > http://help.apple.com/ipad/8/#/iPad245ed123
buenos tardes
ÇÇÇ -
How do I change the date format?
Sorry, but I'm new to Oracle!
I'm using "sqlplusw" to build my SQL statements. When I return columns that are date fields, I get the DD-MON-YY format. I want dates to be returned in "YYYY-MM-DD HH24:MI:SS". My DBA won't change the date format on the server, so how do I change SQLPLUS to return dates in the format I want? Do I need set this in some kind of startup file, or a reg key?
Using client version 9.2.0.5 against a 9.2.0.1 server
JeffThere are a couple of ways you could do it.
Way 1:
Search for a file by name 'glogin.sql' on your client work station and add the following statement
alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure you save the file. This change will apply to all users who will log into the database using SQL*PLUS from your machine.
Way 2:
Create a shortcut and place it some where (for example on the 'DESKTOP').
Right click on the short cut and choose properties.
Change the text corresponding to the 'Start in' box to reflect the current location of the shortcut.
Create a file by name 'login.sql' and place it in the same folder as the shortcut.
Edit the file and add the following line.
alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure that you save the file.
When you double click the shortcut to start SQL*Plus and login, the script 'login.sql' is executed. -
I wnat the date formate. year with 4 digigt, month and date two digit. I do
This is my code.
TimeZone timeZones = null;
DateFormat dateFormating = null;
boolean dateCheck = true;
Date newDate = new Date);
if(dateCheck)
dateFormating = DateFormat.getDateTimeInstance( DateFormat.SHORT, DateFormat.SHORT, Locale.GERMAN); // Locale.FRANCE
timeZones = TimeZone.getTimeZone("America/Los_Angeles"); // "Europe/Berlin"
}else{
timeZones = TimeZone.getDefault();
dateFormating = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US);
dateFormating.setTimeZone(timeZones);
String formatedDate = dateFormating.format(newDate);
// System.out.println(" DateFormatManager ================ formatedDate "+dateFormating.format(newDate));
I got the this date 5/29/08. But I want the date for this formate 5/29/2008. I don't want to set the date formate. It's automaticaly change based on the timezone and locales.
Anybody help me correct result. Which part i want to change the above code.
Thanks
palanithis is a reusable component which i developed try it
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.text.DecimalFormat;
import java.util.Calendar;
import java.util.Date;
public class DateTime// implements Runnable
protected DecimalFormat tflz, tf;
private boolean stopped=false;
javax.swing.JTextField text_field;
public DateTime(javax.swing.JTextField text)
text_field=text;
new Thread(new Runnable() {
public void run() {
while (stopped==false) {
// run1();
paint1();
try {
Thread.sleep(1000);
} catch (InterruptedException e) { /* do nothing */
}).start();
// java.util.concurrent.ExecutorService es=java.util.concurrent.Executors.newFixedThreadPool(0);
// es.execute(this);
public void paint1() {
tf = new DecimalFormat("#0");
tflz = new DecimalFormat("00");
Calendar myCal = Calendar.getInstance();
StringBuffer sb = new StringBuffer();
sb.append(tflz.format(myCal.get(Calendar.MONTH)+1));
sb.append("/");
sb.append(tflz.format(myCal.get(Calendar.DATE)));
sb.append("/");
sb.append(tflz.format(myCal.get(Calendar.YEAR)));
sb.append(" ");
sb.append(tf.format(myCal.get(Calendar.HOUR)));
sb.append(':');
sb.append(tflz.format(myCal.get(Calendar.MINUTE)));
sb.append(':');
sb.append(tflz.format(myCal.get(Calendar.SECOND)));
String sss = sb.toString();
text_field.setText(sss);
public void stop()
stopped=true;
public void start()
stopped=false;
} -
Why is the date format tied to regional settings
i like my date/time format to be customized to my liking. for me, the only way i can do this is to set my region to be the uk, even though i live here in the us. i find this kind of annoying since this causes some weird things to happen in other apps as well. for example, visiting the apple link would take me to the uk site instead of the us site. i understand that this is because i chose the uk in the international settings. but it's the only way i can get the date format that's close to what i want. is there a reason why apple doesn't allow you to customize the time/date format separately from choosing what country you reside in?
hue tang wrote:
is there a reason why apple doesn't allow you to customize the time/date format separately from choosing what country you reside in?
"We" are users like you, with no knowledge of why Apple does or does not include particular features. In this case, I'd guess for simplicity, but that's just a guess.
You can submit feedback to Apple: http://www.apple.com/feedback/iphone.html. -
Need to change the date format in Bex
HI All
In SAP BI I have created a BEx Query. We can see BEx reports in MS Excel. Date format in the report is DD/MM/YYYY and i want it to be displayed like YYYYMMDD. but only for one date column in the report the rest stay the same. Please help.Hi Basson,
Goto t-code SU01
Enter you user ID details click on change --> select the Default TAB here you can find the option to change the date formats.
Or
In BW goto Menu option System > User Profile>Own Data > It will display the user profile parameters> in default tab page change date format there.
Its better to go for a routine .
Regards
Prashanth K -
Is there any function module to convert the date format
Dear ABAPers,
Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.
I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.
Thanks & Regards,
Ashok.hi,
create custom function module or copy the below code in the report ..and use it
the out put for below is :----Convert a DATE field into a full format date eg. March 23, 2000
FUNCTION Z_CONVERT_DATE_INTO_FULL_DATE.
""Local interface:
*" IMPORTING
*" VALUE(DATE) LIKE SY-DATUM
*" EXPORTING
*" VALUE(FORMATTED_DATE)
*" EXCEPTIONS
*" INVALID_DATE
TABLES: TTDTG.
DATA: BEGIN OF T_DATE,
YYYY(4) TYPE C,
MM(2) TYPE C,
DD(2) TYPE C,
END OF T_DATE.
DATA: DAY(3) TYPE N.
DATA: VARNAME LIKE TTDTG-VARNAME.
IF DATE IS INITIAL.
CLEAR FORMATTED_DATE.
EXIT.
ENDIF.
check document date format
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
EXPORTING
DATE = DATE
EXCEPTIONS
PLAUSIBILITY_CHECK_FAILED = 1.
IF SY-SUBRC NE 0.
RAISE INVALID_DATE.
ENDIF.
MOVE DATE TO T_DATE.
CONCATENATE '%%SAPSCRIPT_MMM_' T_DATE-MM INTO VARNAME.
SELECT SINGLE * FROM TTDTG WHERE SPRAS = 'EN' AND VARNAME = VARNAME.
WRITE T_DATE-DD TO DAY.
CONCATENATE DAY ',' INTO DAY.
CONCATENATE TTDTG-VARVALUE DAY T_DATE-YYYY INTO FORMATTED_DATE
SEPARATED BY SPACE.
ENDFUNCTION.
the output is :--Convert a DATE field into a full format date eg. March 23, 2000
Regards,
Prabhudas -
Function module to change the date format
hi guys
is there any function module to change the date format
from 08/28/2007(mm/dd/yyyy)
to August 28, 2007.
regards
vamsihi vamsi.,
Use CONVERSION_EXIT_SDATE_OUTPUT to get the month name,
but it will give short form of the month name.
if you want <b>long description of the month</b>,
use this peice of code.
PARAMETERS: V_DATUM(07) TYPE C. "(example input:12-2007)
DATA: V_MON(2) TYPE C,
V_YEAR(4) TYPE C,
V_MONTHNAME(10) TYPE C,
V_FULLDATE(30) type c.
WRITE V_DATUM+0(2) TO V_MON.
SELECT SINGLE LTX FROM T247 INTO V_MONTHNAME
WHERE SPRAS = SY-LANGU
AND MNR = V_MON.
CONCATENATE V_MONTHNAME v_datum+3(4)
INTO V_FULLDATE SEPARATED BY SPACE. "(example output : December 2007)
write: v_fulldate.
<i><b>Reawrd points if useful</b></i>
Chandra -
Problem in Date Format when user chages the date format in preferences
I want to generalize my code so that user can change what ever Date format he wants, I will get the date from the page in the format yyyy-mm-dd, and if the Date Format is
set to MM/dd/yyyy in prefernces i need to use MM/dd/yyyy and if the Date Format is set to dd-Mon-yyyy in prefernces i need to use dd-MMM-yy, so my question is how to know what Date format is set in the preference so that i can have all the possible date format for inserting the date
Thanks
BabuBabu,
The date format in OAF Pages is controlled by profile ICX: Date format mask.This profile can be set at site as well as user level for the individual users to set the Date format.
But I would advice not to go for setting different profile values at user level, because i remember some old threads, where seeded Oracle pages fail, as code their is not generalised to handle date formats.
If your are planning to have this in ur custom page, go ahead, but do check the entire flow is working fine for different values of this profile at user level.
--Mukul -
How to get the date format yyyy-mm-dd?
Hi,
I have an iphone (3.1.2) and would like to use the date format yyyy-mm-dd (international date format). Is the possible? If yes, how?
CheersI know of no other way to set the date format other than what I mentioned in my previous post. There are third party apps that will do what you want in the app. store, but they are not permitted to access the underlining software.
-
In Thunderbird, how do I change the date format for the column display?
I want the date to show as DD-MM-YYYY HH:MM AM/PM. Although this should be really obvious (and I know I've done it in the past), I can't find where to do this and can't find anything in Thunderbird Help on this, not even when I search "Thunderbird, change date format".
Thunderbird usually uses the computer date and time and settings.
I'm using Windows and notice that TB is using the short date format which I set up under Regional & Language Options.
Are you using the International settings or Date/Time settings?
It should pick up the settings from the 'International' or maybe its called now called 'Language & Text' setting.
not sure which of these suits your macbook:
http://www.macyourself.com/2008/08/31/modify-the-default-clock-in-os-xs-menu-bar-to-show-the-full-date/
http://www.dummies.com/how-to/content/language-text-preferences-on-your-macbook.html
http://www.dummies.com/how-to/content/how-to-change-your-macs-date-and-time.html
http://www.youtube.com/watch?v=2zBMl8Vb3wc
http://support.apple.com/kb/TS3579 -
Can I customize the date format?
When importing camera raw files, I am able to select mmm/dd/yyyy as an option in the photo downloader. Once the files are in Bridge, if I want to batch rename, the date option does not include mmm(the month spelled out instead of numeric). Is there a way to customize the date format in the batch rename menu?
Thank youYou can always include it in the name if you select Text.
Maybe you are looking for
-
How should I move to a new Apple ID?
Hey everyone! With lots of problems with my new iPhone 4s, studying Apple's devices and services such as Apple ID and iCloud, it's time for me to create new Apple ID. I have made a lot of mistakes... New Apple ID! :) So here's my question: How to mov
-
I am having trouble transferring files from an old MacBook (2007) to a MacBook Air over a wireless network. The connection was interrupted and the time was over 24 hours. Is there a better way to do this? I'm using Migration assistant. The lack o
-
The back/forward navigation buttons are greyed out, and I can't find the sites under the History tab. Actually at first all of the tabs loaded my ISPs homepage, some of them had the Back button active and some didn't. I'm wondering how to get the lat
-
Any way I can play music on 15" rMBP with lid closed?
Hi everyone, I'm enquiring if I can play music on my 15" retina Macbook Pro while it is asleep. I have an iPhone 5 I can listen to music on, but I've recently found that the sound is so much better if I plug my headphones into my Mac as it gives a fu
-
MMS for SNMP with eDir 8.8.2
Hello, We have been using MMS for NetWare, Windows and Linux, with the NDSTRAP.NLM providing eDirectory monitoring with eDir 8.7.3 on NetWare We are moving to eDir 8.8.2, and I was wondering if NWTRAP will still work, or do we need to configure the D