Thanks, that did the trick!

On Sep 23, 2:16 pm, Arlen Beiler <[email protected]> wrote:
> It is assuming the time you are giving it is GMT, so subtract 6 hours from
> the starting midnight of March 15 gives you March 14, 6:00. I didn't check
> the code, but this is what it appears to be doing.
>
> On Fri, Sep 23, 2011 at 11:23 AM, JMT <[email protected]> wrote:
> > There must be a simply answer to this but I'm stumped.
> > Date.convertFromYYYYMMDDHHMM() consistently returns the wrong date to
> > me, off by one day. So for example in this script
>
> > <script label="Change date format">
> > var d = "20110315"
> > d = Date.convertFromYYYYMMDDHHMM(d)
> > alert(d)
> > </script>
>
> > the alert says "Mon Mar 14 2011 18:00:00 GMT-0600 (Mountain Daylight
> > Time)," while it should be (I think) March 15.
>
> > I'm trying to get this sorted out so that I can add a custom date
> > field to my tiddlers and have the correct date displayed when I view
> > the tiddler.
>
> > Thanks in advance to you tiddlywiki gurus!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "TiddlyWikiDev" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/tiddlywikidev?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to