Source language: Translate to:

Date To Num

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Date To Num

Postby HackinHoodLogicsTm » Sun Apr 30, 2017 1:24 pm

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
HackinHoodLogicsTm
 
Posts: 120
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana

Re: Date To Num

Postby Gaev » Sun Apr 30, 2017 2:47 pm

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
Gaev
 
Posts: 3728
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Re: Date To Num

Postby HackinHoodLogicsTm » Mon May 01, 2017 1:05 am

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
User avatar
HackinHoodLogicsTm
 
Posts: 120
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest