function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bca321bca321 

subString


Message Edited by bca321 on 03-12-2009 10:08 AM
WhyserWhyser

bca321 wrote:

Hi,

 

How to write down subString for Date type.

Ex; 09 JAN 12

 

String year = '09';

year = pDueDate.year().format();

String month = 'Jan';

month = pDueDate.format('MMM');

String day = '10';

day = pDueDate.day().format();

String hour = '00';

hour = pDueDate.hour().format();

String minute = '00';

minute = pDueDate..minute().format();

String second = '00';

second = pDueDate.second().format();

 

I want to know subString pattern for this one. Help me.


Is that what you're looking for?