Re: formatting dates from a field ...
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12388
interpreted = N
texte = >I have a date in the 'newsdate' field in my database. The value is>'07/10/1997', and I'd like to format it to display as 'July 10'.>How can I do it?Never mind, I figured it out. First you have to change the [newsdate] intoa number by doing this:[math]{[newsdate]}[/math]then you have to format that number with this formatting method:[format days_to_date %B %d][/format]so when you're finally done, the whole thing looks like this:[format days_to_date %B %d][math]{[newsdate]}[/math][/format]Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Associated Messages, from the most recent to the oldest:
>I have a date in the 'newsdate' field in my database. The value is>'07/10/1997', and I'd like to format it to display as 'July 10'.>How can I do it?Never mind, I figured it out. First you have to change the [newsdate] intoa number by doing this:
[math]{[newsdate]}[/math]then you have to format that number with this formatting method:[format days_to_date %B %d][/format]so when you're finally done, the whole thing looks like this:[format days_to_date %B %d]
[math]{[newsdate]}[/math][/format]Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
TaxTotal Problem (1997)
suffix mapping for NT? (1997)
Share cost of training videos! (1998)
Help--WebCat setup (2000)
PSC recommends what date format yr 2000??? (1997)
Show items based on login Password (2003)
Multiple prices (1997)
WebCat2b12--[searchstring] bug (1997)
WebDNA Intranet Edition public demo (2002)
Search results templates (1996)
James Hawker (1998)
signup bots (2006)
success - serial numbers and webmerch (1997)
Re[2]: WebCatalog + Linux + ODBC + Oracle ! ? (2000)
[WebDNA] WebDNA 6.0a - CentOS 4.7 Server Quick Start Guide (2008)
Ready,Set; Print! (1999)
Math, Multiple Equasions and Show/Hide (1998)
Snake Bites (1997)
passing large amount of text in post form (2005)
Password protect (2000)