Page 1 of 1

get a time @ date input

Posted: Tue Nov 07, 2023 12:44 pm
by royst88
hi my name is royston thank you for this free course just to see if we like it,

im stuggling on getting a time and date i was woundering if i am doing anything wrong thanks in advance


//get and date input
inputtime=input.time(title="time", defval=timestamp("01 Jan 2000 13.30 +0000"))

this is the message im getting its to do with the timestamp

Error at 28:53 timestamp(s): unrecognized datetime format

thank you

Re: get a time @ date input

Posted: Thu Nov 09, 2023 5:12 am
by Steve Burman
Try using a colon rather than a period for the timestamp

inputtime=input.time(title="time", defval=timestamp("01 Jan 2000 13:30 +0000"))

Re: get a time @ date input

Posted: Thu Nov 09, 2023 10:59 am
by royst88
thank you very much