I need to know the date of the last Monday

I need to know the date of the last Monday
If today is Monday then I need todays date
If today is Tuesday then I need yesterdays date etc....
If today is Sunday then I need to know the date 6 days ago etc....

the day() function will tell you what day of now() is as an integer: 1=Sunday 7=Saturaday.
You know that Monday is 2.  The difference between today's number and Monday's number (with a little mathmatical juggling to wrap Sunday to the previous week  -- I would probably just convert -1 to 6 with a simple if statement after substracting 2 from the day() value.).
Subtracting (adding a negative value) of this difference with the dateAdd() function will give you the date of that previous Monday.

Similar Messages

  • I ran my iphone over but need to access my contacts/info/pics. I have a up to date backup of my whole phone in iTunes but need to know how to extract the data and load it to my new desktop since it will be a bit before I can afford a new phone.

    I accidentally ran my iPhone over and can't afford another one for a few weeks. Until then I need to find a way to extract the data from my last backup in itunes. I can either put it on my computer or I've set up a cloud account that I was hoping could open it. So far I haven't had any luck with either. if anyone can help me out. I would love to get my pictures/videos, messages and contacts off there. The rest I don't care so much about. If someone could let me know if this is possible I would apprciate it!

    Thanks. I messed up with my husbands iphone because I was told the wrong thing. Now everytime I sync his phone it makes it look just like the other phone I had. Do you know how I can fix taht for his phone? Any settings I can turn off that will prevent all of my apps/contacts, etc from auto populating his phone?

  • Need to add information/data to the Quote Print output for a quote

    I am trying to modify the print quote output generated after selecting a quote on the quote form. I need to know how to add information to this output.
    I am not sure where the output is selected from. How do I modify the select to include information from other tables in oracle. I am using the ASOPRINT.xsl routine. Any help would be greatly appreciated.
    Charles Harding

    Hi,
    From the xsl file I could figure out that the data for the quote lines is generated from the line <xsl:call-template name="line.table">. I would like to have some conditions added to it so that I can have particular type of items displayed on the PDF output. I am unable to figure out where I can add these conditions. Could someone help me in this? Any help would be appreciated.
    Thank You,
    Sowjanya

  • What is the need for setting property data inside the JMSMesage

    Hi
    Could anybody please let me know
    *What is the need for setting property data inside the JMSMesage??
    For example i have a seen a similar example as shown ??
    I have seen a
    Message.setStringProperty("Sport","Basketball");
    and also please tell me how can the MDB recievies this property data ??
    Thanks in advance .

    raviprivate wrote:
    Could anybody please let me know
    *What is the need for setting property data inside the JMSMesage??
    For example i have a seen a similar example as shown ??
    I have seen a
    Message.setStringProperty("Sport","Basketball"); Look at the detail JMS documentation on [Message Properties|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html] .
    >
    and also please tell me how can the MDB recievies this property data ?? MDB onMessage method argument is the Message object and if you look at the documentation, Message interface has getter methods to retrieve the properties.

  • I have a 10.5.8 and would need to know how to upgrade the soft ware to maverick or do I need to buy a new computer

    I have a 10.5.8 and would need to know how to upgrade the soft ware ? . or do I need to buy a new computer. 

    Back up your data, click here, and read the entire page. Mac OS X 10.7 and newer don't support PowerPC software such as Microsoft Office 2004.
    (106103)

  • I got a new macbook pro and now I need to know how to remove the prior owners itunes id from my computer?

    I got a new macbook pro and now I need to know how to remove the prior owners itunes id from my computer?

    If you purchased a computer from another person, you need to wipe it clean.  To do this, click on the link - Erasing disks securely 
    Depending on your model Macbook Pro...
    Start up from your install disc, go to Disk Utility and select the disk and click erase - to securely erase data click Security Options and Erase Free Space which will entirely wipe your disk, overwriting it with zeros so that no data is recoverable.

  • HT1212 i have forgotten the password to my ipad and it says connect to itunes but my computer cant connect to the ipad because of the code and i need it know how to wipe the whole ipad and start from scratch?

    i have forgotten the password to my ipad and its says connect to itunes but i cant connect it to my computer because of the code on the ipad so i need to know how to wioe the whole ipad and start again like a brand new ipad?

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • I'm in cycle mode, and 'merge' is clicked in preferences. However, when I record, my previous track data keeps getting overwritten. Does anyone know what I'm doing wrong. Interestingly, I can still see the data in the region.

    I'm in cycle mode, and 'merge' is clicked in preferences. However, when I record, my previous track data keeps getting overwritten. Does anyone know what I'm doing wrong. Interestingly, I can still see the data in the region.

    jamestait wrote:
    when I record, my previous track data keeps getting overwritten.
    since you didn't specify, are you recording in a single take?
    http://www.bulletsandbones.com/GB/GBFAQ.html#multipassrecording
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • I need to know how to delete the most recent version of Firefox. I JUST downloaded it tonight and my computer doesn't have that little edit bar to work with so I can download the proper Adobe player and my internet has been screwed up ever since I downlo

    I need to know how to delete the most recent version of Firefox. I JUST downloaded it tonight and my computer doesn't have that little edit bar to work with so I can download the proper Adobe player and my internet has been screwed up ever since I downloaded the new version of Firefox. I just want the old version of it back since I apparently can't download the Adobe stuff that is necessary to keep my computer safe from Hackers. It sure would have been nice to know there was an issue with the new Firefox Update BEFORE I uploaded it. I have Vista which is usually an issue with both Adobe and Firefox. I don't seem to be able to run much of Adobe at all on my computer because of the Vista.
    == This happened ==
    Every time Firefox opened

    I have also noticed all my settings won't stay set, example....I removed the check mark from "third party cookies", the when I close Firefox and reopen the check mark is back, also my tool bar has screwed up....can't reset, been having trouble the up grade.

  • I'm a new mac user and need to program future email's. How can I do that? in outlook I can make a change in the date that the email will be sent. How I do that in mail?

    i'm a new mac user and need to program future email's. How can I do that? in outlook I can make a change in the date that the email will be sent. How I do that in mail?

    There isn't a way directly in Mail.
    Here's what google says: http://www.google.com/search?client=safari&rls=en&q=mac+os+x+mail+delayed+send&i e=UTF-8&oe=UTF-8

  • In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String

    In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .

    Hi Srinath,
    The below blog might be useful
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
    PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
    regards,
    Harish

  • All the message dates in the message list changed in every mailbox to a recent date, I don't know why.. The dates within the messages' headlines themselves remained correct.  How do I re-establish the correct dates also in the mailboxes' message list?

    All the message dates in the message list changed in every mailbox to a recent date, I don't know why.. The dates within the messages' headlines themselves remained correct.  How do I re-establish the correct dates also in the mailboxes' message list?

    First thing is to forget all the complex configs and just try to schedule the report to run once now, no alerts, no notifications, no nothing.
    Does that work?
    Then you can build up the schedule, to see where the problem is coming from.
    Sincerely,
    Ted Ueda

  • Hello!!!I need to read some data from the serial port and processing these, at the same time I want to see the process that I am doing.

    I read the data without problems, and I see them using Waveform graph, the problem is that I want to see the real time stamps, but in the graph appears 2:00:00,000 and 01/01/04, so the date and the time is wrong !!
    Can I change this?
    I am thinking that the problem is that I have to adquire the data and the time stamps ( using Get date/time) and after, I have to represent both!!!
    Thanks!!!

    Hello,
    As you probably know a waveform is made of a beginning time (t0), a time difference between each value (dt) and an array of values (Y). Your problem is probably that you don't initialize t0. Use the Vi 'Waveform->Build a waveform' to initialize the time of the waveform.
    Hope this helps !
    Julien

  • I need to know how to "compress" the Folder Tree.  The File folders are moving to the right and out of sight in Lightroom 5.

    I need to know how to "compress" the Folder Tree.  The File folders are moving to the right and out of sight in Lightroom 5.

    A couple of suggestions that may help:
    - Make sure you've made the left-hand column as wide as possible by grabbing the divider between the column and the Library grid view.
    - You can hide a parent folder from the display by right-clicking it and selecting Hide This Parent. This will shift all the child folders to the left.

  • I am so tired of iphoto crashing, losing work I've done.  I want to switch to photoshop elements 10 but need to know if it uses the iphoto library or if I can import that library into elements

    I am so tired of iphoto crashing, losing work I've done.  I want to switch to photoshop elements 10 but need to know if it uses the iphoto library or if I can import that library into elements

    Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
    1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop.  When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done. 
    3 - however, if you get the navigation window
    that indicates that  PS wants to save it as a PS formatted file.  You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements  the Saving File preferences should be configured as shown:
    I also suggest the Maximize PSD File Compatabilty be set to Always.  In PSE’s General preference pane set the Color Picker to Apple as shown:
    Note:  to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.

Maybe you are looking for