Re: Javascript-MV date conversions
- From: dawn <dawnwolthuis@xxxxxxxxx>
- Date: Fri, 10 Oct 2008 10:05:35 -0700 (PDT)
On Oct 7, 4:04 am, Tony Gravagno
<address.is.in.po...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Peter, I'm curious if the script I provided (full web page actually)
stands up to your cross-browser testing.
"Peter McMurray" wrote:
I am afraid that I appear to disagree with Tony on where date testing should
be done. In my opinion it should be done immediately upon entry at the
browser (Ajax) as there is a need for prompt feed back and validation of the
date entered,
I didn't say validate on the server and that's not what she's asking.
She wants to manipulate a Pick date in JavaScript, I'm guessing in a
browser. There is absolutely no valid case for sending a Pick date
integer to any non-MV environment. The "dd mmm yy" format is
sufficiently universal for all purposes, and only 4 (ascii) bytes
longer than the Pick date. I recommend using that.
That is the one I typically recommend too. BTW, until they change it
or we extend it, the toolset we are using uses only the odbc date
format in the exchange between the browser and server-side logic with
their packaged components.
I was considering using javascript for something that would eventually
be in mvbasic (but got it working in mvbasic from the start instead),
so I was considering whether to use the mvdate format within
javascript until then...anyway, I didn't need it.
Again, it seems
someone is just being a bit lazy, wanting to read and pass up raw data
rather than formatting it into a "view" suitable for external use.
Lazy is often a good trait when coding, but nope, that wasn't it this
time
cheers! --dawn
.
- References:
- Javascript-MV date conversions
- From: dawn
- Re: Javascript-MV date conversions
- From: Peter McMurray
- Re: Javascript-MV date conversions
- From: Tony Gravagno
- Javascript-MV date conversions
- Prev by Date: Re: Javascript-MV date conversions
- Next by Date: Re: Did You Know; Shift Happens - Globalization; Information Age
- Previous by thread: Re: Javascript-MV date conversions
- Next by thread: JavaScript Tutorial
- Index(es):
Relevant Pages
|