How to do a full format?

Hi all,
I've been maintaining windows computers for years, but never actually performed a full format on a macbook.
I have Mountain Lion on hand, both on USB and DVD - can someone point me in the right direction on how to do a fresh format and install on a macbook?
Thank you

If you have Mountain Lion (or Lion for that matter) you can easily format your hard drive by doing the following:
Make sure you are connected to the Internet (so you can reinstall the OS after formatting.)
Boot to the recovery partition by restarting the computer and holding down the command and R keys on your keyboard until the background shows up.
Select Disk Utility from the available choices.
Go to the Erase tab. Select your hard drive's main partition (probably called Macintosh HD) and click the Erase button.
Quit Disk Utility.
Reinstall the system. It may take a while depending on your network speed.
That's it. Best of luck.

Similar Messages

  • How to do a Full Format of SSD?

    I want to do a full ssd format...
    I do not want to start system from recovery partition because I will not be able to do a full ssd format...
    This system has a WiFi selection under menu when I press Option during boot ... After I connect to my network I just get the WiFi bars but nothing else...
    I have Recovery, Macintosh HD and Win 7 Partitions... I want to delete it all (Full SSD Wipe) and start new... Can this be done on this system?
    EDIT:
    I am able to Download the OS X installed from Apple Store so i should be able to make a Install USB stick and do a full Format this way...
    If anyone has a better Idea, Please let me know.

    •About OS X Recovery:
    http://support.apple.com/kb/ht4718
    "OS X automatically uses this feature when the Recovery System on
    the hard disk isn't available (such as when your hard disk encounters
    an issue, or when your hard disk has been replaced or erased). OS X
    Internet Recovery lets you start your Mac directly from Apple's servers"
    So there is a method that should work, there.
    Good luck & happy computing!

  • Full format on Arch and map badsectors and smart outputs

    Hi.
    I would like to ask for your help. Recently i've been worried about my two Seagate Barracuda 14 series drives because smart provided by a smartmontools shows "end to end error" that is critical to a hard drive condition. I've been searching over the www for more info but most of them tells that drives with "end to end error" should be immediately returned for an RMA. My drives works well, even with this smart information, wrong parameter. I read that under windows doing a full format will check drive for a bad sector and it there are spare, than they would be remaped.
    I would like to ask for the same thing under linux - how to do a full format to check drive condition, to remove existing bad block/bad sectors when they show up? Doing mkfs.ext4 /dev/sdXY will do the same thinh? Maybe using gparted and do it using gparted gui?
    This is my smart from two drives:
    [firekage@arch_desktop ~]$ sudo smartctl -a /dev/sdj
    [sudo] password for firekage:
    smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.17.6-1-ARCH] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
    === START OF INFORMATION SECTION ===
    Model Family: Seagate Barracuda 7200.14 (AF)
    Device Model: ST2000DM001-1CH164
    Serial Number: Z1E6H7Q4
    LU WWN Device Id: 5 000c50 06596c809
    Firmware Version: CC27
    User Capacity: 2,000,398,934,016 bytes [2,00 TB]
    Sector Sizes: 512 bytes logical, 4096 bytes physical
    Rotation Rate: 7200 rpm
    Form Factor: 3.5 inches
    Device is: In smartctl database [for details use: -P show]
    ATA Version is: ACS-2, ACS-3 T13/2161-D revision 3b
    SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is: Thu Dec 18 13:28:05 2014 CET
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    See vendor-specific Attribute list for marginal Attributes.
    General SMART Values:
    Offline data collection status: (0x00) Offline data collection activity
    was never started.
    Auto Offline Data Collection: Disabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: ( 575) seconds.
    Offline data collection
    capabilities: (0x73) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    No Offline surface scan supported.
    Self-test supported.
    Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 1) minutes.
    Extended self-test routine
    recommended polling time: ( 213) minutes.
    Conveyance self-test routine
    recommended polling time: ( 2) minutes.
    SCT capabilities: (0x3085) SCT Status supported.
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000f 112 099 006 Pre-fail Always - 42465392
    3 Spin_Up_Time 0x0003 096 095 000 Pre-fail Always - 0
    4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1064
    5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
    7 Seek_Error_Rate 0x000f 061 060 030 Pre-fail Always - 1566281
    9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2481
    10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
    12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1054
    183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
    184 End-to-End_Error 0x0032 099 099 099 Old_age Always FAILING_NOW 1
    187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
    188 Command_Timeout 0x0032 100 099 000 Old_age Always - 0 0 3
    189 High_Fly_Writes 0x003a 098 098 000 Old_age Always - 2
    190 Airflow_Temperature_Cel 0x0022 066 047 045 Old_age Always - 34 (Min/Max 24/34)
    191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
    192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 99
    193 Load_Cycle_Count 0x0032 096 096 000 Old_age Always - 9263
    194 Temperature_Celsius 0x0022 034 053 000 Old_age Always - 34 (0 18 0 0 0)
    197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 4
    240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 1604h+23m+27.451s
    241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 8044262567
    242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 1672497340
    SMART Error Log Version: 1
    ATA Error Count: 1
    CR = Command Register [HEX]
    FR = Features Register [HEX]
    SC = Sector Count Register [HEX]
    SN = Sector Number Register [HEX]
    CL = Cylinder Low Register [HEX]
    CH = Cylinder High Register [HEX]
    DH = Device/Head Register [HEX]
    DC = Device Command Register [HEX]
    ER = Error register [HEX]
    ST = Status register [HEX]
    Powered_Up_Time is measured from power on, and printed as
    DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
    SS=sec, and sss=millisec. It "wraps" after 49.710 days.
    Error 1 occurred at disk power-on lifetime: 562 hours (23 days + 10 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    40 51 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    25 00 01 ff ff ff 4f 00 12:10:45.194 READ DMA EXT
    25 00 01 00 00 00 40 00 12:10:45.175 READ DMA EXT
    25 00 01 ff ff ff 4f 00 12:10:45.158 READ DMA EXT
    f5 00 00 00 4f c2 40 00 12:10:45.140 SECURITY FREEZE LOCK
    b0 da 00 00 4f c2 40 00 12:10:45.113 SMART RETURN STATUS
    SMART Self-test log structure revision number 1
    No self-tests have been logged. [To run self-tests, use: smartctl -t]
    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    [firekage@arch_desktop ~]$
    and the second one:
    [firekage@arch_desktop ~]$ sudo smartctl -a /dev/sdk
    smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.17.6-1-ARCH] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
    === START OF INFORMATION SECTION ===
    Model Family: Seagate Barracuda 7200.14 (AF)
    Device Model: ST2000DM001-1CH164
    Serial Number: W1E1WBW0
    LU WWN Device Id: 5 000c50 05cca200b
    Firmware Version: CC24
    User Capacity: 2,000,398,934,016 bytes [2,00 TB]
    Sector Sizes: 512 bytes logical, 4096 bytes physical
    Rotation Rate: 7200 rpm
    Form Factor: 3.5 inches
    Device is: In smartctl database [for details use: -P show]
    ATA Version is: ATA8-ACS T13/1699-D revision 4
    SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is: Thu Dec 18 13:28:37 2014 CET
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    See vendor-specific Attribute list for marginal Attributes.
    General SMART Values:
    Offline data collection status: (0x00) Offline data collection activity
    was never started.
    Auto Offline Data Collection: Disabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: ( 584) seconds.
    Offline data collection
    capabilities: (0x73) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    No Offline surface scan supported.
    Self-test supported.
    Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 1) minutes.
    Extended self-test routine
    recommended polling time: ( 214) minutes.
    Conveyance self-test routine
    recommended polling time: ( 2) minutes.
    SCT capabilities: (0x3085) SCT Status supported.
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000f 106 099 006 Pre-fail Always - 11998592
    3 Spin_Up_Time 0x0003 095 095 000 Pre-fail Always - 0
    4 Start_Stop_Count 0x0032 098 098 020 Old_age Always - 2349
    5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
    7 Seek_Error_Rate 0x000f 073 060 030 Pre-fail Always - 4316601253
    9 Power_On_Hours 0x0032 100 095 000 Old_age Always - 592
    10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
    12 Power_Cycle_Count 0x0032 100 098 020 Old_age Always - 233
    183 Runtime_Bad_Block 0x0032 093 093 000 Old_age Always - 7
    184 End-to-End_Error 0x0032 099 099 099 Old_age Always FAILING_NOW 1
    187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
    188 Command_Timeout 0x0032 100 098 000 Old_age Always - 3 3 25
    189 High_Fly_Writes 0x003a 099 099 000 Old_age Always - 1
    190 Airflow_Temperature_Cel 0x0022 068 042 045 Old_age Always In_the_past 32 (1 80 32 24 0)
    191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
    192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 210
    193 Load_Cycle_Count 0x0032 094 094 000 Old_age Always - 12687
    194 Temperature_Celsius 0x0022 032 058 000 Old_age Always - 32 (0 16 0 0 0)
    197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x003e 200 199 000 Old_age Always - 47
    240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 4513h+35m+52.508s
    241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 18705892093
    242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 10912938323
    SMART Error Log Version: 1
    No Errors Logged
    SMART Self-test log structure revision number 1
    No self-tests have been logged. [To run self-tests, use: smartctl -t]
    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    [firekage@arch_desktop ~]$
    I have found on www that "end to end error" means that chip on drive is either damaged, or broken and can't work properly when checking data that are being writed, they are not in match with data recived and stored in cache.
    Could somebody help? Thanks.
    In fact, it's just a bad joke from seagate. Two drives, rather new, one with around 2500h and one with only 500h are damaged, and damaged critical according to smart when my older Barracuda 11 has around 25000h and works fine! I don't want to spend fortune to hdd, won't buy red series from WD, won't buy green because i read a lot about broken green series drives...and now Seagate...

    davidm wrote:
    My gut feeling is this is nothing to worry about.  What are the odds that both failed in exactly the same way.
    From reading around it seems Seagate's SMART compatibility is questionable and highly proprietary.  More than likely smartmontools is misreporting things under the circumstances.  Apparently Seagate has an iso you can download and test your drives with that for a more accurate diagnoses.
    Here is their answer:What gave you tthat SMART error? It seems to me the
    Linux diagnostic? Our SMART values are proprietary and do not conform to
    the industrie standard. That is why 3rd party tools cannot correctly
    read our drives.
    To check on the condition of the drive, download Seatools for DOS (it
    boots into Free BSD and works with Linux).
    Here is the download link:
    http://www.seagate.com/ww/v/index.jsp?l … 04090aRCRD
    Seatools for DOS is an ISO image file that is burnt to CD. You boot with
    that CD and run the long test that will examine every sector on that
    drive. If Seatools indicates the drive has a problem, you should
    exchange it (it will generate an error code)."
    http://sourceforge.net/p/smartmontools/ … /24435188/
    It seems the problem is not very rare.
    Yes, they suggested me the same thing on Seagate support but...well...i want to be sure...i just can't belive that seatools is far better than smart reads.

  • My mac disk is full and i cant transfer files from Mac to USB. saying the format is not good, how can i change the format and what happened to the files i have on USB?

    my mac disk is full and i cant transfer files from Mac to USB. saying the format is not good, how can i change the format and what happened to the files i have on USB?

    Once something similar happened to me. The external drives I had set up for FCP to use for some reason were not mounted, and FCP put all its render files on the main drive and I couldn't find them anywhere.
    Go to applications, and control-click (and hold down) on your FCP icon; you should get a pop up menu that says "show package contents". Select that, select the "contents" folder, then the "mac OS" folder. See if your quicktime file is in there, or if you've got render files in the "render" folder or audio render files in the "audio render" folder that don't belong there.
    That's where FCP sticks stuff when your documents FCP project folders are not available or when external drives you've selected aren't available.

  • How to make button to format a HardDrive or USB, How to remove all files from folder, and How to delete a process in listbox with a textbox?

    Hello!
    Here's the question with explaniation: How can i format the USB or Drive by clicking a button what's meant for it?
    and the second question what's also in vb.net: How can i remove all files from folder ? 
     Here's the Look of program: *
    Using the PC button, it will delete the free space of the PC, do you guys/girls know where it's location?

    Example Code:
    Imports System.Runtime.InteropServices
    Imports System.IO
    Public Class Form1
    Dim CBoxDrives As New ComboBox
    WithEvents FButton As New Button
    <DllImport("shell32.dll")> _
    Private Shared Function SHFormatDrive(ByVal hwnd As IntPtr, ByVal drive As UInteger, _
    ByVal fmtID As UInteger, ByVal options As UInteger) As ULong
    End Function
    Private Enum SHFormatFlags As Integer
    SHFMT_ID_DEFAULT = &HFFFF
    SHFMT_OPT_FULL = &H1
    SHFMT_OPT_SYSONLY = &H2
    SHFMT_ERROR = &HFFFFFFFF
    SHFMT_CANCEL = &HFFFFFFFE
    SHFMT_NOFORMAT = &HFFFFFFD
    SHFD_FORMAT_FULL = 0 ' full format
    SHFD_FORMAT_QUICK = 1 ' quick format
    End Enum
    Private Sub FButton_Click_1(sender As System.Object, e As System.EventArgs) Handles FButton.Click
    If CBoxDrives.Text = "" Then
    MsgBox("No Drive Selected")
    Exit Sub
    End If
    Dim Iresult As ULong = SHFormatDrive(CType(Me.Handle.ToInt32, IntPtr), CUInt(Asc(CBoxDrives.Text.Substring(0, 1)) - Asc("A")), CUInt(SHFormatFlags.SHFMT_ID_DEFAULT), 1)
    End Sub
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    Me.Size = New Size(200, 100)
    With FButton
    .Size = New Size(50, 25)
    .Location = New Point(5, 5)
    .Text = "Format"
    End With
    Me.Controls.Add(FButton)
    With CBoxDrives
    .Size = New Size(50, 25)
    .Location = New Point(75, 5)
    .DropDownStyle = ComboBoxStyle.DropDown
    End With
    Me.Controls.Add(CBoxDrives)
    Dim DrivesFound As Integer = 0
    Dim allDrives() As DriveInfo = DriveInfo.GetDrives()
    Dim d As DriveInfo
    For Each d In allDrives
    If ((d.DriveType = DriveType.Fixed) Or (d.DriveType = DriveType.Removable)) AndAlso Environment.GetEnvironmentVariable("SYSTEMROOT").StartsWith(d.Name) = False Then
    CBoxDrives.Items.Add(d.Name)
    DrivesFound += 1
    End If
    Next
    CBoxDrives.SelectedIndex = DrivesFound - 1
    End Sub
    End Class

  • How do I change file format so I keep HD and can play on blu ray player?

    how do I change file format so I keep HD and can play on blu ray player?

    Hi
    Part of it - in my way of doing is
    Roxio Toast™ Pro incl BD-component.
    • Burn short AVCHD - on standard DVDs (20-30 minutes at HD quality) - NEED Blu-Ray player to be viewed
    or BD-burner and disks - for full Blu-Ray Disks (not got to this yet)
    I think that saving as .mpeg4 H.264 and save on USB-memory to be put into PlayStation3 also keep high quality playback.
    Yours Bengt W

  • Just got a new Macbook Pro with Maverick. In Mail, how do you get the format bar to show?

    Just got a new Macbook Pro with Maverick. In Mail, how do you get the format bar to show?

    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • I'm trying to make a time sheet and include a grid, but I'm having a hard time figuring out how to print a full grid on my spreadsheet.  There are options for shaded grids but I want a defined grid, and I have spent the last 2 hours looking for the answer

    I'm trying to make a time sheet and include a grid, but I'm having a hard time figuring out how to print a full grid on my spreadsheet.  There are options for shaded grids but I want a defined grid, and I have spent the last 2 hours looking for the answer.  Any ideas?

    Hi Cynthia,
    Are you planning to have this table do any of the calculation, or is is to be used as the electronic equivalent of a sheet of paper with a grid printed on it—a place to record the data.
    For your seven column table:
    Are you using one or more rows at the top of the table to label the data below? If so, you might want this row (or these rows) to be set as Header Rows.
    Are you using the leftmost column to label the rows? If so, you may want this column to be a Header column.
    The default table supplied on the "Blank" templates contains one header row and one header column. If you need more (or fewer) Header rows or columns, select the table, then go Table (menu) > Header Rows > (choose the number you need). Repeat to set the number of Header Columns.
    To make a seven column table from the table supplied by default, click on any cell in column H (The eighth column), and drag right to add more cells to the selection, until you get to the last column of the table. With these cells selected, Go Table > Delete Columns.
    To make the remaining seven columns fit across a single page:
    Go View > Show Print View to show the table as it would appear when printed to paper.
    Select the table by clicking its icon in the Sheets List to the left (easy method), OR by carefully clicking on the outside boundary of the table itself (fiddley method).
    With the table selected, you will see square white handles at each corner and at the middle of each side (including the top and bottom).
    With the mouse, grab the handle in the middle of the right side of the table and drag right (or left) until the table just fits onto the width of the defined page.
    With the table still selected, set the thickness and colour of the cell boundaries using the Gaphics Inspector (as described by Jerry), or using the Stroke, Thickness and Color Well controls in the Format bar above the working portion of the Window.
    Regards,
    Barry

  • How do I change the format of my workspace it is limited to vertical only?

    how do I change the format of my workspace it is limited to vertical only?

    You really need to be more specific and use terminology from the program. There is no panel called the "edit window." And I can't begin to guess what you mean by "the complete window needed for full video screen." As Steven suggested, a screenshot could really help.
    If you're basically asking how to rearrange the layout of the panels, you can do that by mousing over the divider between any two panels and then clicking and dragging side-to-side or up-and-down.
    See the Workspaces sections of this help document: http://helpx.adobe.com/pdf/premiere_pro_reference.pdf

  • How can I copy cell formatting from one range to another?

    How can I copy cell formatting from one range to another, including text fonts, colours, borders, etc., so that, for example, I can reuse a formatted reconciliation table again in different parts of a sheet?

    Hi George,
    Wayne found the Spinning Beachball of Death, and you will find it too.
    Numbers is not good at handling large datasets. Might I suggest that you group your data into smaller sets (each month, perhaps?) and save each group in a separate Numbers document. Numbers will not link between documents, but you could have a summary Table within each document. Then comes the "clunky" bit of copying all those summary tables into a master document where you do the final processing of the data.
    Regards,
    Ian.

  • How to change the date format?

    Hi,
    I need to display the data format as(YYYY-MM-DD). But now it displays(2009-1-9)
    Here is my code snippet which i used to display the data format as(2009-1-9)
    *<INPUT TYPE=TEXT NAME="date_submitted" MAXLENGTH=20 SIZE=10 VALUE="" onBlur= "return dateSubmitted()">  (YYYY-MM-DD)*
    *<SCRIPT LANGUAGE="javascript">*
    dateSubmitted()
    *</SCRIPT>*
    function dateSubmitted()
                        if (document.pgUpdate.date_submitted.value == "")
                             date = new Date();     
                             month = date.getMonth() + 1     
                             document.pgUpdate.date_submitted.value =
                                            date.getYear() + "-" + month + "-" + date.getDate();
                        return true;
    Can anybody help me how to change the date format?
    Thanks in advance!

    prit123 wrote:
    use SimpleDateFormat class. The code is :He posted a Javascript related question, not a Java related question.
    Please use forums devoted to Javascript. You're here at a Java/JSP forum.
    There are JS forums at webdeveloper.com and dynamicdrive.com. Good luck.
    String formatPattern = "yyyy-mm-dd";
    SimpleDateFormat sdf = new SimpleDateFormat(formatPattern);
    sdf.format(yourdate);yyyy-mm-dd denotes year-minutes-days. Please go read the SimpleDateFormat API as well.

  • How to handle Multiple date formats for the same date field in SQL*Loader

    Dear All,
    I got a requirement where I need to get data from a text file and insert the same into oracle table.
    I am using SQL*Loader to populate the data from the text file into my table.
    The file has one field where I am expecting date date data in multiple formats, like dd/mon/yyyy, yyyy/dd/mon, yyyy/mon/dd, ,mm/dd/yyyy, mon/dd/yyyy.
    While using SQL*Loader, I can see Loading is failing for records where we have formats like yyyy/dd/mon, yyyy/mon/dd, mon/dd/yyyy.
    Is there any way in SQL*Loader where we can mention all these date formats so that this date data should go smoothly into the underlying date column in the table.
    Appreciate your response on this.
    Thanks,
    Madhu K.

    The point being made was, are you sure that you can uniquely identify a date format from the value you receieve? Are you sure that the data stored is only of a particular limited set of formats?
    e.g. if you had a value of '07/08/03' how do you know what format that is?
    It could be...
    7th August 2003 (thus assuming it's DD/MM/RR format)
    or
    8th July 2003 (thus assuming it's MM/DD/RR format)
    or
    3rd August 2007 (thus assuming it's RR/MM/DD format)
    or
    8th March 2007 (thus assuming it's RR/DD/MM format)
    or even more obscurely...
    3rd July 2008 (MM/RR/DD)
    or
    7th March 2008 (DD/RR/MM)
    Do you have any information to tell you what formats are valid that would allow you to be specific and know what date format is meant?
    This is a classic example of why dates should be stored on the database using DATE datatype and not VARCHAR2. It can lead to corruption of data, especially if the date can be entered in any format a user wishes.

  • How to delete a custom format in Numbers 3

    I am one of the poor unfortunates that has upgraded to Numbers 3 BIG mistake!!
    However does anyone know how to delete a custom format in Numbers 3?
    I'm not sure where the custom format came from in the erlier version of numbers. I guess I must have created it for something, I can't remember what.
    It now appaers that when I send a Numbers 3 document via email to an Excel format  it adds a weird custom format that turns currency into garbage. Once in Excel simply going to format cells and deleting this odd format cures the problem.
    If I could find a way of deleting it in Numbers 3, hopefully the problem will go away.
    This is far from the only problem I'm having with Numbers 3. It's begining to look like I'll have to abandon Numbers 3 having had to go to the expense of buying a new iPad because Numbers 3 documents (and presumably Pages Keynote etc) no longer work on the original iPad.

    I never promote the method the deletion unless you understand the underlying tables of planning, if you search on the forum you will see posts on the subject just like this one - Delete dimension from planning application
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to create a print format in SAP

    Hi,
    I dont know if this is the right forum to ask this, but I have not done this for a long time. Does anybody know how to maintain a print format such as "X_65_200" that you use when printing a report in SAP? I'm trying to create a format that will use a Legal size paper. Useful answer will be rewarded.
    Thanks,
    Ricky
    Message was edited by: Ricky Orea

    Hi,
    The Print formats are maintained in TSP1D Table.. it is usually done by the BASIS folks..
    Regards,
    Suresh Datti

  • How can i see my formatted document??

    Hi,
    I have this table
    CREATE TABLE ARCHAEOLDB(
    ID_DOC NUMBER(5) PRIMARY KEY,
    NOME_DOC VARCHAR2(200),
    FMT_DOC VARCHAR2(10)
    this is an example of my formatted document in my table.It has stored in my file system
    INSERT INTO archaeoldb VALUES(1,'RapportiSiciliaMagnaGreciaEtruriaTestimonianzaAraTarquinia.doc','binary');
    My datastore is file_datastore, and my filter is inso_filter.
    How can i see my formatted documents from php?
    I tried to create a table that contained the text of every document,using ctx_doc.Filter, in this way
    create table doc_filter
    query_id number constraint doc_filter_key primary key,
    document clob,
    format_doc VARCHAR2(10) default ‘binary’
    begin
    Ctx_Doc.Set_Key_Type ( Ctx_Doc.Type_Primary_Key );
    Ctx_Doc.Filter
    index_name => 'archindex' ,
    textkey => '2',
    restab => 'doc_filter',
    query_id => 2,
    plaintext => true /* try the effect of FALSE */     
    end;
    but if i runned from php
    select format from doc_filter where query_id=2 ;
    the result was a not formatted document..
    how can i solve my problem??
    if there are other solution, it's ok!!
    I tried in many ways, but i can't solve this problem!!
    thankyou

    SORRY!

Maybe you are looking for