Date Format By Country
Hi There Helpful people...
Usual stuff first DW8, (Mac - not that that makes a
difference), ASP VB connected to SQL database.
I have a content management - which is used to maintain the
content of an international site. On the site we have a timeline
displaying key moments in the company's history. The articles are
translated into the relevant languages and are pasted in to the
database - no problems here. The dates are entered numerically ie
01/01/2007. The SQL statement for the page converts this date into
Month and Year (ie October 1983) using the statement "SELECT
datename (mm,hi_date) 'Month', datename (yy,hi_date) 'Year',
hi_text, hi_image" A later statement selects which language to pull
from the database as all 6 languages go in the same database but
are given a country code (GB, ES, PT etc).
My problem is this - that month and year always displays in
English no mater which country it is view in. Is there a way of
getting it to show the month in the language of the user or simpler
still specify the language I want for the date directly in the
page? (Each language is done as a sub-site, ie
www.websitename.com/es so it does not need to be a one for all
solution)
Your help would be appreciated
Best Regards
Stuart
Well, the database server is always the same language. You
could set the
LCID of the page based on the selected language, though.
Then, pass the
date as a date from the database and use VBScript's date
functions to
display the month and year. Those functions will obey the
LCID setting of
the page.
<%=MonthName(Month(yourRS.Fields.Item("dateCol").Value))%>
"kaostheory777" <[email protected]> wrote in
message
news:f72gon$804$[email protected]..
> Hi There Helpful people...
>
> Usual stuff first DW8, (Mac - not that that makes a
difference), ASP VB
> connected to SQL database.
>
> I have a content management - which is used to maintain
the content of an
> international site. On the site we have a timeline
displaying key moments
> in
> the company's history. The articles are translated into
the relevant
> languages
> and are pasted in to the database - no problems here.
The dates are
> entered
> numerically ie 01/01/2007. The SQL statement for the
page converts this
> date
> into Month and Year (ie October 1983) using the
statement "SELECT datename
> (mm,hi_date) 'Month', datename (yy,hi_date) 'Year',
hi_text, hi_image" A
> later
> statement selects which language to pull from the
database as all 6
> languages
> go in the same database but are given a country code
(GB, ES, PT etc).
>
> My problem is this - that month and year always displays
in English no
> mater
> which country it is view in. Is there a way of getting
it to show the
> month in
> the language of the user or simpler still specify the
language I want for
> the
> date directly in the page? (Each language is done as a
sub-site, ie
> www.websitename.com/es so it does not need to be a one
for all solution)
>
> Your help would be appreciated
>
> Best Regards
>
> Stuart
>
Similar Messages
-
Date format within smartforms printing
Hello,
I have an issue regarding date format.
When I print a delivery note date format is e.g. 08.04.2011, printing an invoice it shows 04-08-2011.
It seems that depending on the customers country the invoice printing converts to date format within country settings
(V_T005-DATFM) while delivery form doesn't.
If I always want to print in date format of sales company what should I do?
Thanks a lot,
Wolfi.I guess, it should work if you define
/: SET COUNTRY &country_key&
in the Initialization section of your smartform.
Note: The country-dependent formatting options are stored in the T005X table.
Regards,
SaiRam -
How to Change Date Format according to the Locale/Country of Portal User
Hi,
In a webdynpro applicaiton, how to chage the Date Format according to the Locale/Country of Portal User.
Consider for INDIA: mm/dd/yyyy
Consider for UK: yyyy/mm/dd
So when i select the date from the Date Picker[input ui element bound to date context variable], the date format should be displayed accroding the portal users country/locale.
Creating a simple type for every date format in the dictionary would not be the right solution.
Please help.
Thanks,
Regards,
Aditya MetukulHi Aditya,
Check out the following post in SDN and refer the
Bertram's reply on the same topic.
date format
Regards,
Shubham -
Date Format of Date Picker in Webdynpro to be Changed according to Country
Hi,
I want to change the Date Format of Date Picker in Webydnpro accoding to the portal users country.
As each and every country has its own date format, i can't create simple types of date formats in Data Dictionary and bind them dynamically.
Even the webdynpro date picker doesn't change according to the portal users country/locale, I tested with different countries for a portal user by changing in portal user profile.
Please help .
Regards,
Aditya MetukulJUST WE HAVE TO CHANGE THE LANGUAGE OF THE USER
-
I'm physically in Malaysia and my iPad sets Malay as my default time format setting. How to get rid of the whole thing of using Malay as my date format and use English as default for everything including date and time ? Under setting> general > international, I have to choose something and English is not an option.
You need to choose an English-speaking country - I have Settings > General > International > Region Format set to United Kingdom (as I'm in the UK), so the first day of the week is monday and times are of the format 01:23 etc (there also options for US, Canada, Australia etc)
-
Hi,
Please help me as i require to display dates are per the country , for eg if it is US the date should be dd/mm/yyyy else for other countries like india it should be dd.mm.yyyy .
Regards
AbhishekI know this is an old thread, but thought I would add my on comments:
This code example shows how to create a country specific date format.
Also see table T005 and field DATFM / Domain DATFM
DATA: external_date LIKE rvdat-extdatum,
country LIKE t005-land1,
internal_date LIKE syst-datum,
internal_period LIKE tprg-prgrs .
internal_date = sy-datum.
internal_period = 1.
country = 'DO'. "Dominican Republic
CALL FUNCTION 'PERIOD_AND_DATE_CONVERT_OUTPUT'
EXPORTING
country = country " Enter Country Code Here
internal_date = internal_date
internal_period = internal_period " Default this value to one
LANGUAGE = SYST-LANGU
I_PERIV = I_PERIV
I_WERKS = I_WERKS
I_MRPPP = I_MRPPP
IMPORTING
external_date = external_date " The date formated for the country will be in this field
EXTERNAL_PERIOD = EXTERNAL_PERIOD
EXTERNAL_PRINTTEXT = EXTERNAL_PRINTTEXT
EXCEPTIONS
DATE_INVALID = 1
PERIODE_INVALID = 2 -
In IOS 6 my date format was YYYY-MM-DD, which is ISO 8601 standard used in Canada. When I switched to IOS 7, it changed to MM-DD-YYYY format which is very confusing as all my cameras etc use YYYY-MM-DD. How do you change it, like one can in OSX?
It appears previous versions of IOS would pick up your preferred date format from your OSX Mac. You can modify that to whatever you like.
Now if you select Canadian or American in IOS 7 you get only MM-DD-YYYY. This is wrong for Canada as the preferred date format here is YYYY-MM-DD, just check your birth or expiry dates on your Ontario Drivers License or OHIP Health Card. Or the date field at the bottom left of any Government of Canada website.
The trouble with using other Country codes is you tend to get their currency codes like € or £ and the terms like yesterday and today in their language. -
Date format issue in Custom Pages
Hi All
I have set ICX: Date Format profile option as 31-Dec-1999 and under preferences set the date format as DD-MM-YYYY. But still in my custom pages when i fetch data and show it shows in the format YYYY-MM-DD. Could anyone please tell me is it the default mask for OAF. If so then what is the significance of setting preference format mask when it does not get reflected.Please help.
Thanks
RajHi Sachin,
where did you set the SET COUNTRY in the layout?
It should be in the Initialization tab in the Global defnitions. Please confirm that.
Regards,
Selva K. -
Date format in Maintain capacity of iSupplier portal
Hi,
In Maintain capacity under planning tab of isupplier portal page, when we select a row and click on Maintain capacity,we get a detail page.In that page we r asked to specify the capacity/day for the given date range.This date field doesnot support the format dd-mon-yy/dd-mm-yy but takes date for eg 3-jul-02 but not 03-jul-02(or) 30-jul-02.
kindly help.The date format is calculated using country and language settings.
Check SAP Notes 947081 and 1164528 which deal with this topic.
If you use an R/3 based store (UME User Management Engine) in the backend system to keep your user data please ensure that you have not only maintained the language setting but also the country setting. Both in combination determine the NetWeaver Web Dynpro locale and in consequence the calendar date format that is used, e.g. DD/MM/YYYY for Australian English and MM/DD/YYYY for USA English.
Thanks,
Shanti -
Prblm in Date format when exported to excel
Hi ,
I had a problem when using the Export To Excel option from Portal. The data is getting fine populated in Excel but it's in General No Specific Format. But I wanted the data to be in its original format even when exported to Excel. Like...
Country -
Date Goods Delivered
India----
01.01.2001
America----
05.12.2004
Singapore----
12.04.2003
Here the country should be of type TEXT FORMAT and Date Goods Delivered should be in DATE FORMAT(Here its visible as date but it's in General format)
I am facing problem with date, it is displayed(01.04.2006) as shown above but it's in general format. I wanted it to be in date format at excel.
I am in BW3.5 with portal version EP7.0
Please suggest the solution and I had even gone through previous forum questions related to this but couldn't get.....the solution.
points will be assigned...
Regards,
rudra.Hi,
My end users requirement is to get all data in Standard format. We can't ask to select the date column and change the format in excel as there are more date fields(columns ).
Using macro i had one problem,even though i am not sure..
i can't enable the macro to get enabled in page load of export to excel as it is to be done at users end...
If theres any possibilty of enabling....pls let me know
Thanks for your valuable suggestions...
Regards,
rudra. -
Hi friends,
I am running payment run and system when generates checks, it creates checks with european format (DD.MM.YYYY)for vendors of china, UK but for US vendors its in US format(MM/DD/YYYY)
Is there a way in SAP we can make it similar for all vendors.
Because we pay them from US banks and client want all checks to be generated in US format only.
Thanks
MilHello Mil,
I suppose this should help.
Try changing the country global parameters
In order to get there. SPRO > General Settings > select the country that you need to change to US standards. Say for instance china (Double click)
It would take you to Country Global Parameters.
Here under Date format which appears on the bottom-left corner choose MM-DD-YYYY instead of the default.
Hope this would resolve your issue.
Please allocate points if rendered useful.
Thanks
Raj -
SSIS XML task date format issue
Hi, there;
I created an SSIS package XML task to import customer XML data. The LocaleID is set to "New Zealand"
I have an xml file which has date fields as attribute (dd/MM/yyyy). I created this package and run it in an .NET console program.
The interesting thing is that: when I run under my own windows account, I can import data into SQL properly (dd/MM/yyyy), but when I run it as scheduled task (under another special windows account) it gives America format (MM/dd/yyyy).
What I found is that my personal account in AD is set to New Zealand, the special windows account given by the infrastructure engineer
is set to "default" which is American user.
So, my question is that is there any way/something we can set in the package or
XSD somewhere to tell SSIS what the source date format is rather then controlled by the "AD account"?. The reason is that imagine that
if I have 2 XML files from different clients, one is New Zealand date format(dd/MM/yyyy), another one is American date format (MM/dd/yyyy), I want same package (NOT same XML task) to import 2 XML files with result in New Zealand format.
Thank you in advance.
Cheers
Robert
qiuweiHi Robert,
Based on your description, there are two scenarios:
You want to format the XML file column date with dd/MM/yyyy or MM/dd/yyyy format to dd/MM/yyyy. In this scenario, we can use Derived Column Transformation to convert the MM/dd/yyyy format to dd/MM/yyyy format for the American XML task, then use the new
column maps to the corresponding Destination column. The following expression is for your reference:
LEFT(RIGHT(Column,7),2) + "/" + LEFT(Column,2)+"/"+ RIGHT(Column,4)
The XML file data already import to SQL table, different country people view the data with different date format. Please note that a datetime column is stored as binary in database, the display format is related to the SSMS server. For more details, please
see the following KB:
INF: How to Set the Day/Month/Year Date Format in SQL Server
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Date Format was not displayed correctly
Hi All,
We are developing WebDynpro Application successfully....but the date format was not displayed correctly.
the RFC Date format is : 05/23/2007
but in webdynpro we are getting date is wrong....we are getting date is : 09/05/2008.
the below one is our coding for date display format.....
public java.lang.String DisplayingDateFormat( java.lang.String date )
//@@begin DisplayingDateFormat()
// Current date Format in BW
SimpleDateFormat sdf = new SimpleDateFormat("MM.dd.yyyy");
String ChangedDateFormat=null;
try{
//Parsing String to Date
Date sqlDate =sdf.parse(date);
Locale userLocale=WDClientUser.getCurrentUser().getLocale();
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT, userLocale);
//Converting Date to String
String newDateString = dateFormat.format(sqlDate);
ChangedDateFormat=newDateString;
I mention my user country is Germany.
can u tell me any one why we are getting wrong date.....
Really i appreciate.
Thanks and Regards,
Abhiram.Too bad you can not offer yourself points. LOL
-
Date formats in BEx selection screen
Can we set date formats to use the European format as a default (by person) in Bex? I don't see varialbes taht are set-up this way.
Hi laja,
BEx date format is based on the global settings made on each indiviual PC user.
to change the default USA date format in BEx to your required format,
Go to > Control Panel > Regional and Language options > customize (or) select your country from the list.
http://www.vistax64.com/tutorials/156918-date-format-change.html -
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.
Maybe you are looking for
-
I get a message that Iphoto does not recognize the photos
-
How do I stop my movie from playing?
I have used previous versions of Adobe Flash and now have Professional CS5.5, and I am coming to you with an embarrasingly, ridiculously stupid question that is absolutely stumping me. My movie cannot stop playing, no matter how many stop(); I've emb
-
Photoshop elements 13 on Win 7 64bit.
I had Photoshop elements 13 working. It stopped working and now wont load either the organiser or edit files. Anyone any thoughts?
-
I use Outlook as my email service. When in Outlook, almost every time I send an email or delete an email I get a popup box Titled "File Download". It says "DO you want to open or save this file?" "NAME'' Is a long string of alpha-numeric characters s
-
Premiere Elements 13 Major .MOD Widescreen Concerns
Recently Premiere Elements 13 user Flash Curious posted a thread to inquire about some incorrect Interpret Footage and Properties readings that were seen for a .mod widescreen file imported into a Premiere Elements 13 project. Premiere Elements Misin