cancel
Showing results for 
Search instead for 
Did you mean: 

Date problem initialising dates

Former Member
0 Kudos

We have PC client with language settings localizaion english(USA) (MM/DD/YYYY) and SAP Business One is setup with Danish localization (DD.MM.YY). When initialising a date field in an addon, we get the format MM/DD/YYYY insted of DD.MM.YY. Is this a known problem??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Gunner,

David has a good point.

Maybe you can convert the date to the Danish globals

Take a look at this: [http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo(VS.71).aspx]

Hope this helps..

Regards,

Answers (1)

Answers (1)

Nussi
Active Contributor
0 Kudos

Hi,

>When initialising a date field in an addon ...

when you work with commands like DateTime.Now you get the format of the Windows Settings.

thats normal behavior of Visual Studio.

if your problem is something else feel free to post a code snippet.

lg David