Author Topic: Today Date Format  (Read 284 times)

LAD

  • Full Member
  • *
  • Posts: 182
  • Karma: +1/-0
    • View Profile
Today Date Format
« on: November 27, 2008, 10:09:38 AM »
Today Date Format

I am using the lotusscript function like this

doc.currentDate = Today.

currenDate - NotesDateTime field and I selected option of only date to display.

But its stored as "11/20/2008 12.00 AM EST" when the current time is "11/20/2008 9.00 AM EST" , From other location it will be like "11/20/2008 12.00 AM IST" . Basically it does not consider the current time, takes only current date. But when it stores in the field, it simply adds 12.00 AM<current zone> with the date. I would like to store only the date. How can I do that? I tried using notesDatetime.Dateonly. But it returns the string, I want to have data type of date when I store it in the field. Please note that this backend operation. I do not update it in front end. Thanks for any advice.

 

Posting Disclaimer: Any individual may post a message in this forum and may do so anonymously. Therefore, the sole author is exclusively and entirely responsible for all opinions in that message. They do not represent the official opinions of Techronnati, its administrators or moderators or the Techronnati Management. Techronnati is merely acting as an impartial conduit for constitutionally protected free speech and is not responsible and will not be held liable for the content of such messages.