A quick and dirty way for doing this. No error checking, big assumptions about the input to the prompt being right.
12345nd := @Prompt([OKCANCELEDIT]; "Enter the New Date"; "YYYY/MM/DD."; @Today);
@If (nd ="";@Return("");"");
y := @Left (nd;"/");
m := @Left(@Right (nd;"/");"/");
d:= @right(@Right (nd;"/");"/");
12FIELD DateFieldOnForm := @Date(@TextToNumber (y) ;@TextToNumber ( m)
;@TextToNumber ( d) )
the Key is parsing the string [...]
Follow
Archives (since 2003)
Categories
-
Recent Posts
- Apples part of the shifting Television screen.
- Initialize max value with Ruby on Rails ActiveRecord, automagically, from fat controller to smart model
- Adding a “loading” image to (just about) any form on submit, with jQquery
- Jazzing It Up At the Art Museum in Los Angeles, California
- Quick links as of June 4th 2010
- Building a Cascading Drop Down Selection List for Ruby on Rails with jQuery Ajax
Twitter Updates
- I liked a YouTube video -- Recycle your unwanted electronics - City of Toronto http://youtu.be/91OXkMkesBc?a 15 hours ago
- I'm organizing and coordinating my Japan Trip with Google Wave. Seeing both the promise and the fail. of the product. 20 hours ago
- I have failed my saving Throw against Shiny ... I new 32G iPod Touch is on order :) 1 day ago
del.icio.us links
- Internet Slang Dictionary & Translator
Confused by net slang? Can't read a text message? Translate internet slang and acronyms - James Hance - 'Wookiee The Chew - The House at Chew Corner'
- Founder Institute: How To Launch In 10 Steps With Less Than $2,000
- Classic comic Calvin & Hobbes rebooted as "Joker & Lex"
- Smoothie Charts
a really small charting library designed for live streaming data.
- Internet Slang Dictionary & Translator
Flickr




-
Spam Blocked
Subscribe by RSS
Subscribe by Email
Follow Me on Twitter
my Del.icio.us Bookmarks
my Flickr Pictures