croezen
21st March 2007, 17:41
Hello,
I need the user to input a date field in some cases.
input.string works fine with a string field but is there also a function to get an date field from the user?
mark_h
21st March 2007, 18:37
Is there a reason you can not use input.string and covert the input to a date using inputstr.to.date ? Yeah you will have to do some coding around errors, but it should work.
I have actually created sub-sessions for things like this. I did it simply to make error checking easier. This would probably work for you also.
NPRao
21st March 2007, 22:43
Refer to the links - Use of session ttstpcalendar (http://www.baanboard.com/baanboard/showthread.php?t=5329&highlight=ttstpcalendar)
Return Field for Calendar (http://www.baanboard.com/baanboard/showthread.php?t=9778&highlight=WTHANG)
croezen
2nd April 2007, 17:23
thanks guys for your input.
I have used the string field to get my date.
I didn't know how to get the value back from ttstpcalendar, so this workaround works ok for me.