|
List Info
Thread: str2date
|
|
| str2date |
  United States |
2007-08-28 01:55:23 |
|
Is this expected behaviour (I didn't expect it):
date d = str2date("31.04.2007",123);
;
info(strfmt("%1",d));
Shows "30.04.2007".
Is it the general behaviour all over Dynamics AX?
Regards,
Morten Lehrmann
__._,_.___
.
__,_._,___
|
| RE: str2date |
  Poland |
2007-08-29 02:30:21 |
Hi,
Everything is OK. The date 31.04.2007 doesn't exist.
Regards
Pawe³ Gabryelczyk
_____
From: development-axapta@yahoogroups.com
[mailto:development-axapta@yahoogroups.com] On Behalf Of
mlefoa
Sent: Tuesday, August 28, 2007 8:55 AM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] str2date
Is this expected behaviour (I didn't expect it):
date d = str2date("31.04.2007",123);
;
info(strfmt("%1",d));
Shows "30.04.2007".
Is it the general behaviour all over Dynamics AX?
Regards,
Morten Lehrmann
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
htt
p://groups.yahoo.com/group/development-axapta/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/development-axapta/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:development-axapta-digest@yahoogroups.com
mailto:development-axapta-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
development-axapta-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
| RE: str2date |
  Turkey |
2007-08-29 00:59:05 |
Yes this the correct behaviour ...
If you try this 31.08.2007 you will get the result as
31.08.2007
But in your example April has 30 days so it shows as
"30.04.2007"
________________________________
From: development-axapta@yahoogroups.com
[mailto:development-axapta@yahoogroups.com] On Behalf Of
mlefoa
Sent: Tuesday, August 28, 2007 9:55 AM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] str2date
Is this expected behaviour (I didn't expect it):
date d = str2date("31.04.2007",123);
;
info(strfmt("%1",d));
Shows "30.04.2007".
Is it the general behaviour all over Dynamics AX?
Regards,
Morten Lehrmann
<br><br>
Bu elektronik posta, icerigindeki butun icerik ve eklerle
birlikte sadece almasi istenilen kisiye gönderilmis olup,
gizlidir. Buradaki bilgiler, hukuksal, profesyonel ve diger
ayricaliklar tarafindan koruma altina alinmis bilgiler
olabilir. Eger siz, bu elektronik postanin gonderilmek
istendigi kisi degilseniz bu e-posta ve bu e-postaya ekli
dosyalari kopyalamaniz, kullanmaniz veya baskalariyla
paylasmaniz kesinlikle yasaktir. Bu durumda, bu e-posta ve
tum eklerini silip, bize acilen haber
veriniz.<br><br>
Bu elektronik postada acik veya imali olarak belirtilen tum
gorusler, yazan kisiye ait olup, UNITIM Holding A.S. ve grup
sirketlerinin goruslerinden
bagimsizdir.<br><br><br>
This message, together with any attachments, is
confidential, is intended only for the use of the
addressee(s) and may contain information which is covered by
legal, professional or other privilege. If you are not the
intended recipient, any copying, distribution or use of this
email or its attachments, or of the information contained
therein, is strictly prohibited; please destroy this email
and its attachments and notify us immediately.
<br><br>
Any opinions, express or implied, presented are solely those
of the author and do not necessarily represent those of the
UNITIM Holding A.S. and its affiliated companies.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
htt
p://groups.yahoo.com/group/development-axapta/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/development-axapta/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:development-axapta-digest@yahoogroups.com
mailto:development-axapta-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
development-axapta-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
| Re: str2date |
  United States |
2007-08-29 01:25:43 |
|
April 2007 is 30 days
[Non-text portions of this message have been removed]
__._,_.___
|
| Re: str2date |
  United States |
2007-08-29 09:32:51 |
|
Many thanks for all answers to my question.
However, how can I validate a date so that, e.g. 31.4.2007, would be
rejected as an illegal date? I excepted str2date to do that.
Regards,
Morten Lehrmann
__._,_.___
.
__,_._,___
|
| Re: Re: str2date |
  United States |
2007-08-30 03:16:34 |
|
Hi,
I think you need to create your own validation like :
Str str1 = "31.04.2007";
Date d = str2date(str1,123);
Str str2 = date2str(tgl,123,2,2,2,2,4);
Just compare if str1 is not the same as str2 then your string date is
invald.
Regards,
Agus
On 8/29/07, mlefoa < morten%40lehr.dk">morten lehr.dk> wrote:
>
> Many thanks for all answers to my question.
>
> However, how can I validate a date so that, e.g. 31.4.2007, would be
> rejected as an illegal date? I excepted str2date to do that.
>
> Regards,
> Morten Lehrmann
>
>
>
[Non-text portions of this message have been removed]
__._,_.___
.
__,_._,___
|
| Re: str2date |
  Turkey |
2007-08-28 12:37:06 |
of course it is.
u know there is no 31 days in April
Volkan ZANAGAR
Specialist
Software Development
______________________________________
NISSAN OTOMOTIV A.S.
Kuşbakışı Cad.No:11
P.K.46 34662 Altunizade /Istanbul-Turkey
Phone :+90(216)651 84 00 (pbx) Ext: 162
Fax :+90(216)651 84 34
http://www.nissan.com.tr
"mlefoa" <morten lehr.dk>
Sent by: development-axapta@yahoogroups.com
28.08.2007 20:15
Please respond to
development-axapta@yahoogroups.com
To
development-axapta@yahoogroups.com
cc
Subject
[development-axapta] str2date
Is this expected behaviour (I didn't expect it):
date d = str2date("31.04.2007",123);
;
info(strfmt("%1",d));
Shows "30.04.2007".
Is it the general behaviour all over Dynamics AX?
Regards,
Morten Lehrmann
Bu e-posta mesajı ve ekleri gönderildiği kişi ya da kuruma
özeldir ve
gizlidir. Ayrıca hukuken de gizli olabilir. Hiçbir şekilde
üçüncü kişilere
açıklanamaz ve yayınlanamaz. Mesajın yetkili alıcısı
değilseniz hiçbir
kısmını kopyalayamaz, başkasına gönderemez veya hiçbir
şekilde
kullanamazsınız. Eğer mesajın yetkili alıcısı veya yetkili
alıcısına
iletmekten sorumlu kişi siz değilseniz, lütfen mesajı
sisteminizden
siliniz ve göndereni uyarınız. Gönderen ve NISSAN OTOMOTIV
A.S, bu mesajın
içerdiği bilgilerin doğruluğu, bütünlüğü ve güncelliği
konusunda bir
garanti vermemektedir. Mesajın içeriğinden, iletilmesinden,
alınmasından,
saklanmasından, gizliliğinin korunamamasından, virüs
içermesinden ve
sisteminizde yaratabileceği zararlardan NISSAN OTOMOTIV A.S.
sorumlu
tutulamaz.
This e-mail and its attachments are private and confidential
to the
exclusive use of the individual or entity to whom it is
addressed. It may
also be legally confidential. Any disclosure, distribution
or other
dissemination of this message to any third party is strictly
prohibited.
If you are not the intended recipient, you may not copy,
forward, send or
use any part of it. If you are not the intended recipient or
the person
who is responsible to transmit to the intended recipient,
please contact
the sender by reply e-mail and destroy all copies of the
original message
and its attachments. The sender and NISSAN OTOMOTIV A.S.. do
not warrant
for the accuracy, currency, integrity or correctness of the
information in
the message and its attachments. NISSAN OTOMOTIV A.S. shall
have no
liability with regard to the information contained in the
message, its
transmission, reception, storage, preservation of
confidentiality, viruses
or any damages caused in anyway to your computer system.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
htt
p://groups.yahoo.com/group/development-axapta/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/development-axapta/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:development-axapta-digest@yahoogroups.com
mailto:development-axapta-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
development-axapta-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
[1-7]
|
|