Date To Num

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Locked
User avatar
HackinHoodLogicsTm
Posts: 131
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana
Contact:

Date To Num

Post by HackinHoodLogicsTm »

Hi NB Team.

I cant seem to convert a formatted date into Julian format

the date format works with dd/mm/yy but wont work with dd/mmm/yy

please any explanations
I am proud to be a Neobooker!!!
www.neosoftware.com
Special Thanks To
Mr. David Riley
User avatar
Gaev
Posts: 3782
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada
Contact:

Re: Date To Num

Post by Gaev »

HackinHoodLogicsTm:
the date format works with dd/mm/yy but wont work with dd/mmm/yy
From the Help file ...
The date must match the format parameter below.

format
A string that identifies the format of the date. For example:
m/d/y
Month/Day/Year

d/m/y
Day/Month/Year

y/m/d
Year/Month/Day

Default
Use the system’s default date format.
... I do not see support for "month in text" format.

But you can write your own subroutine to change months like Jan, Feb, .... Dec to 01, 02 ... 12 ... and then pass the result to DateToNum.
User avatar
HackinHoodLogicsTm
Posts: 131
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana
Contact:

Re: Date To Num

Post by HackinHoodLogicsTm »

Thanks Gaev.
But you can write your own subroutine to change months like Jan, Feb, .... Dec to 01, 02 ... 12 ... and then pass the result to DateToNum.
Exactly what am doing
I am proud to be a Neobooker!!!
www.neosoftware.com
Special Thanks To
Mr. David Riley
Locked