When you say it's not working, can you be more specific?
You mention that Excel is reformatting your date. That is true, Excel will do that. You can change the formatting in Excel.
To get an idea of how to do that, you can search the forum for topics related to it. http://www.mibuso.com/forum/viewtopic.p ... 91&start=0
Also, the trick is, open Excel, then "record a new macro" and then format everything how you want it.
Next, go ahead and edit the macro. It will show you the code to format everything how you want it.
Now, you can replicate the same code in NAV.
In this case, you should just go ahead and export the date value without formatting it. Then, tell excel to:
Use the NumberFormat field to control how Excel displays dates.
The value of the field is copied to Excel's cell property NumberFormat. Number Format Codes may give you some idea of the codes available. Or use Google to find more info how to set this property. It is easier to find it there than in Excel's own help.
Comments
In Windows go to Control Panel --> Region and Language
Change the Format there
Rishi
thanks for your reply. the code is not working.
If I try with "Year,4"
the output is 0014/06/01 instead of 2014/06/01
i try to use this commands but isn't 100% accurate:
but if i put / symbol or - Excel will put the date with "DD/MM/YYYY" automatically.
How can i solve this?
i already do this but Excel converts into DD/MM/YYYY.
Can i setup the Excel Buffer to work with this format YYYY/MM/DD?
Best Regards
It is working for me
(But I don't use Year,4 I'm using Year4)
When you say it's not working, can you be more specific?
You mention that Excel is reformatting your date. That is true, Excel will do that. You can change the formatting in Excel.
To get an idea of how to do that, you can search the forum for topics related to it.
http://www.mibuso.com/forum/viewtopic.p ... 91&start=0
Also, the trick is, open Excel, then "record a new macro" and then format everything how you want it.
Next, go ahead and edit the macro. It will show you the code to format everything how you want it.
Now, you can replicate the same code in NAV.
In this case, you should just go ahead and export the date value without formatting it. Then, tell excel to:
hth
- Reinhard
The value of the field is copied to Excel's cell property NumberFormat.
Number Format Codes may give you some idea of the codes available. Or use Google to find more info how to set this property. It is easier to find it there than in Excel's own help.
also try this code
with this
and the Excel value gives me 05/06/2013
Works fine for me too. I don't know how it's returning the value 05/06/2013.
Play around with it, review the results, try quotes in front if excel is dividing the #'s:
''''+FORMAT("Posting Date",0,'<Year4>/<Month,2>/<Day,2>');
http://www.BiloBeauty.com
http://www.autismspeaks.org
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!