Date broken

Stereomike

Client
Регистрация
29.03.2011
Сообщения
221
Благодарностей
30
Баллы
0
{-String.Split-|-{-TimeNow.Date-}-|- -|-0-}

Date command (I stripped the time) in macro editor gets me this:

Execution result: 10/23/2011

In project maker debug and ZP it gives me this: 23.10.2011
Probably because of language settings.

Please fix it.
Or add {-TimeNow.DayDate-}
to get 23

That way I could assemble the date my own and language won't break it.

Haven't seen any fixes for quite a while, would be cool, if you could be a little more communicative about the future of this product and when to expect bug fixes. Great software besides this.
 

Stereomike

Client
Регистрация
29.03.2011
Сообщения
221
Благодарностей
30
Баллы
0
btw if anybody has the same problem, this is the solut- no - workaround:
{-JS.Execute-|-var textdate="";var d=new Date();textdate=[d.getMonth()+1]+"/"+[d.getDate()]+"/"+[d.getFullYear()];-}
 
  • Спасибо
Реакции: shabbysquire

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
An old thread, but this helped. The usual ZP date macros were always one day out (yesterday).

Anyway, for UK format: day/month/year:

Код:
{-JS.Execute-|-var textdate="";var d=new Date();textdate=[d.getDate()]+"/"+[d.getMonth()+1]+"/"+[d.getFullYear()];-}
 

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)